[ansible-project] aws ece dettach Volume error

2020-02-06 Thread Sandy Hung
dear all: please help me how to detach volume - name: Detach a Volume ec2_vol: id: vol-0a75b01a93b9e6778 region: "{{ region }}" instance: None PLAY [localhost] ***

[ansible-project] Updating software on cluster nodes without dropping traffic on those nodes

2020-02-06 Thread Rahul Kumar
Hi Ansible Gurus, I need some suggestions for performing online opeations on a cluster. Problem : I have a 5 nodes cluster set up by Ansible . All nodes of cluster carrying some network traffic. Now I want to update application software on each node , so that no traffic is dropped. If I update

Re: [ansible-project] Re: aws ec2 add new ebs volume error

2020-02-06 Thread Dick Visser
Just read the error message. It literally says what’s not right: Unsupported parameters for (ec2_vol) module: instance_id I’ve never used the module but from the docs you can see that this is the parameter you need to use:

[ansible-project] Re: aws ec2 add new ebs volume error

2020-02-06 Thread Sandy Hung
so I need use module in add volume? On Friday, February 7, 2020 at 11:26:11 AM UTC+8, Sandy Hung wrote: > > Dear all: > > please help me thanks. > > - name: Create New EBS volume > ec2_vol: >aws_access_key: "{{ aws_access_key }}" >aws_secret_key: "{{ aws_secret_key }}" >

[ansible-project] Re: aws ec2 add new ebs volume error

2020-02-06 Thread Work-Hard
(ec2_vol) the module is not supported by anisble On Thursday, February 6, 2020 at 7:26:11 PM UTC-8, Sandy Hung wrote: > > Dear all: > > please help me thanks. > > - name: Create New EBS volume > ec2_vol: >aws_access_key: "{{ aws_access_key }}" >aws_secret_key: "{{

[ansible-project] aws ec2 add new ebs volume error

2020-02-06 Thread Sandy Hung
Dear all: please help me thanks. - name: Create New EBS volume ec2_vol: aws_access_key: "{{ aws_access_key }}" aws_secret_key: "{{ aws_secret_key }}" instance_id: "{{ instance_id }}" volume_size: "{{ volume_size }}" device_name: "{{ device_name}}"

[ansible-project] nmcli module seems broken. Documention mentions old libraries for CentOS8/RHEL8

2020-02-06 Thread matzuba
I am trying to use the nmcli module to set DNS server and other network related configuration rather than using templates *Is it still broken? should i give up on this module?* the module dependencies mention an old library which i believe is no longer avail on centos8 -

[ansible-project] Anible windows script get stuck for my of my machine - Although reboot command is provided to reboot if required. any idea, why ?

2020-02-06 Thread Work-Hard
*Ansible:- * --- - hosts: windows vars: ansible_connection: winrm ansible_ssh_port: 5986 anisble_winrm_transport: kerberos ansible_winrm_server_cert_validation: ignore validate_certs: false ansible_winrm_scheme: https ansibe_winrm_read_timeout_sec: 30 win_updates:

Re: [ansible-project] Issue with curl command running with shell module

2020-02-06 Thread Dick Visser
Hi Pawan You state: "Curl command is working fine on command line shell". But in fact, it is not working fine, because it exits with error code 3, which (according to https://curl.haxx.se/libcurl/c/libcurl-errors.html) means "The URL was not properly formatted." You would have seen that if you

Re: [ansible-project] format List comparison ansible

2020-02-06 Thread Rakesh Parida
Hi Vladimir, This Solutioñ works. Thanks for your extended help on this. I just tweaked something to match my requirements, overall your solution works well for me. Regards Rakesh On Thu, 6 Feb 2020, 21:27 Vladimir Botka, wrote: > On Thu, 6 Feb 2020 20:37:37 +0530 > Rakesh Parida wrote: > > >

Re: [ansible-project] Running Playbooks against RDS

2020-02-06 Thread Dick Visser
Hi Another mail with a little bit more information. To prevent iterating over little bits of information guessing what you are doing, could you please tell clearly: - What you are trying to achieve. - How you are doing this. - What problems you encounter. - Which command did you run, and what

Re: [ansible-project] Ansible for RDS

2020-02-06 Thread Dick Visser
Hi The error is pretty self explanatory. You need to make sure you can connect to the RDS Oracle instance by SSH. Check out https://docs.ansible.com/ansible/latest/user_guide/intro_getting_started.html#connecting-to-remote-nodes On Thu, 6 Feb 2020 at 21:22, Anand Solomon wrote: > > Hi, > How

[ansible-project] help with variable lookup

2020-02-06 Thread Jason Bullen
I'm a greenhorn...I have this problem where I want the user to input either dev or prod in an env prompt then I take that and access a dictionary to get its custom properties. it works fine if I hardcode {{ dev.ip }} but if I do a lookup it says variable dev.ip not found. Also, let me know if

[ansible-project] Re: Ansible setting - add proxy

2020-02-06 Thread Andre Gronwald
you want to use a proxy for reaching remote server, or you want to change proxy setting on the remote server? regards, andre -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it,

[ansible-project] Running Playbooks against RDS

2020-02-06 Thread Anand Solomon
Hi, How to even run ansible commands to the RDS Oracle instance ? Is there a special parameter I should be passing ? . I have "connection; local" in the task. I tried to execute the playbook, I get the below error. Am i missing something ? Here is my playbook variable. vars: oracle_home:

[ansible-project] Ansible for RDS

2020-02-06 Thread Anand Solomon
Hi, How to even run ansible commands to the RDS Oracle instance ? Is there a special parameter I should be passing ? . I have "connection; local" in the task. I tried to execute the playbook, I get the below error. Am i missing something ? Here is my playbook variable. vars: oracle_home:

[ansible-project] Reports error, but it seems to be working

2020-02-06 Thread Joe
I'm new to Ansible, so I'm working my way though learning it. I have a small very basic playbook with two tasks. The first task uses the junos module to back the config of a switch. The second tasks changes the host name of the switch. Ansible reports that only first task was successful.

[ansible-project] Format two List Comparison

2020-02-06 Thread Rakesh Parida
Hi , Someone barged into my ongoing Discussion . So i had to start a new Discussion. If my items of lists are not fixed on both the list , how do i compare them: Now i have one more issue on the LIST comparison: If the numbers of items in list is not equal is there way to compare: suppose

Re: [ansible-project] format List comparison ansible

2020-02-06 Thread Vladimir Botka
On Thu, 6 Feb 2020 20:37:37 +0530 Rakesh Parida wrote: > > I would like my o/p as below: > > dp-steps-common-3.0.12 not equal to > > dp-steps-common-3.0.15-1911280809_d103a.noarch > > iam-service-default-3.1.37 is equal to > > iam-service-default-3.1.37-1911141021_63e48.noarch > >

Re: [ansible-project] Help in scripting

2020-02-06 Thread vishwas govekar
Thanks for the response On Thu, Feb 6, 2020, 9:56 AM Dick Visser wrote: > Hi > > You already are engaged in a conversation on this list. Branching that > into another by verbatim forwarding a single message without context isn’t > going to help you get better responses. > > Please post proper

[ansible-project] ansible win_security_policy - find section

2020-02-06 Thread Pierre Ochsenbein
Hi guys, How can I find section name for win_security_policy? - name: Allow Auto Update win_security_policy: section: System Update key: AllowAutoUpdate value: 0 TASK [windows-gpo : Allow Auto Update]

Re: [ansible-project] format List comparison ansible

2020-02-06 Thread Rakesh Parida
Hi Vladimir, I have tried a lot but unable to find solution for my issue. Pls help on this On Thu, 6 Feb 2020, 16:38 Rakesh Parida, wrote: > Hi Vladimir, > > I would like my o/p as below: > dp-steps-common-3.0.12 not equal to > dp-steps-common-3.0.15-1911280809_d103a.noarch > >

Re: [ansible-project] Help in scripting

2020-02-06 Thread Dick Visser
Hi You already are engaged in a conversation on this list. Branching that into another by verbatim forwarding a single message without context isn’t going to help you get better responses. Please post proper questions, or just wait until the volunteers here respond to your original question.

[ansible-project] Help in scripting

2020-02-06 Thread vishwas govekar
On Thu, Feb 6, 2020, 8:36 AM vishwas govekar wrote: > I am working on Apache storm project using Ansible scripts ,I > have stormconfproperties.yml which has variable values for > supervisor_slots_ports > > [image: image.png] > In my template files I have to pass it as variables .Can you help me

Re: [ansible-project] Re: Migrating playbook from ubuntu to amazon linux 2 - throws error missing dependency: python-apt

2020-02-06 Thread Adrian Sebastian Dutu
You can use package facts for that: https://docs.ansible.com/ansible/latest/modules/package_facts_module.html On Wednesday, February 5, 2020 at 10:27:01 AM UTC+1, Stefan Hornburg (Racke) wrote: > > On 2/5/20 9:48 AM, Adrian Sebastian Dutu wrote: > > Why are you using the command module? > > >

Re: [ansible-project] format List comparison ansible

2020-02-06 Thread vishwas govekar
I am working on Apache storm project using Ansible scripts ,I have stormconfproperties.yml which has variable values for supervisor_slots_ports [image: image.png] In my template files I have to pass it as variables .Can you help me for supervisor.slots.ports as I have done for the remaining but

Re: [ansible-project] format List comparison ansible

2020-02-06 Thread Rakesh Parida
Hi Vladimir, I would like my o/p as below: dp-steps-common-3.0.12 not equal to dp-steps-common-3.0.15-1911280809_d103a.noarch iam-service-default-3.1.37 is equal to iam-service-default-3.1.37-1911141021_63e48.noarch iam-python-common-1.0.1 not found in list2 On Thursday, February 6, 2020 at

Re: [ansible-project] format List comparison ansible

2020-02-06 Thread Vladimir Botka
On Thu, 6 Feb 2020 00:42:28 -0800 (PST) Rakesh Parida wrote: > If the numbers of items in list is not equal is there way to compare: > suppose my lists are: > list1 > "dp-steps-common-3.0.12", > "iam-python-common-1.0.1", > "iam-service-default-3.1.37"

Re: [ansible-project] Re: Install sudo on RHEL

2020-02-06 Thread Stefan Hornburg (Racke)
On 2/6/20 10:43 AM, Jeremy Njock wrote: > Thanks for your reply. > > I tried to use dzdo as become option: > | > -name:Installsudo >   yum: >     name:sudo >   become:dzdo > | > > But I encounter the same issue message. Small wonder as you apparently failed to read or understand the

[ansible-project] Re: Install sudo on RHEL

2020-02-06 Thread Jeremy Njock
Thanks for your reply. I tried to use dzdo as become option: - name: Install sudo yum: name: sudo become: dzdo But I encounter the same issue message. Op donderdag 6 februari 2020 09:33:01 UTC+1 schreef Jeremy Njock: > > I have an ansible playbook, wich connects to a remote server. > On

Re: [ansible-project] Install sudo on RHEL

2020-02-06 Thread Dick Visser
The default become_method is sudo, and since you don't have that available, you can't "become", and hence you can't install a package. But, you don't HAVE to use sudo, it's just the default. You already have an alternative privilege escalation option (dzdo). I'd try using that first, because it is

Re: [ansible-project] Running the same task on 2 different groups , each group have different variables

2020-02-06 Thread Vladimir Botka
> Host file > > [web_server] > 130.1.1.1 > 130.1.1.2 > 130.1.1.3 > > [managr_server] > 130.1.1.5 > 130.1.1.6 > 130.1.1.7 Systemic Ansible-way would be to create a role and use group_vars. For example 1) Keep the inventory (fix "manager_server" group label) 2) Create a role e.g.

Re: [ansible-project] format List comparison ansible

2020-02-06 Thread Rakesh Parida
Hi Vladimir, If my items of lists are not fixed on both the list , how do i compare them: Now i have one more issue on the LIST comparison: If the numbers of items in list is not equal is there way to compare: suppose my lists are: list1 "dp-steps-common-3.0.12",

[ansible-project] Install sudo on RHEL

2020-02-06 Thread Jeremy Njock
I have an ansible playbook, wich connects to a remote server. On that remote server sudo is not installed. I can only gather root access with running *dzdo su - *in terminal. I tried to run following task to install sudo - name: Install sudo yum: name: sudo become: yes become_user:

Re: [ansible-project] authorized_key and multiple keys for one user

2020-02-06 Thread Stefan Hornburg (Racke)
On 2/5/20 10:54 PM, Daniel Nanboe wrote: > I have an inventory file where for one host I have defined the users and keys > that I want to use in a playbook: > > | > sftp_users: > -remote_user:prod >   state:present >   long_name:prod user >   ssh_key: >    -prodkey_1 >    -prodkey_2 >