[ansible-project] Re: lineinfile is skipped if one of the task ignored

2021-07-19 Thread Hanumantha Reddy Basireddy
Hello All, Any leads On Monday, July 19, 2021 at 1:17:35 PM UTC+5:30 Hanumantha Reddy Basireddy wrote: > Hi All, > I have a playbook as follows: > > --- > - hosts: all > gather_facts: no > ignore_unreachable: true > > tasks: > - command: "{{ item }}" > loop: > - "ls" >

[ansible-project] New releases: ansible-core 2.11.3, ansible-base 2.10.12, ansible 2.9.24

2021-07-19 Thread Rick Elrod
Hi all- we're happy to announce the general release of: - ansible-core 2.11.3 - ansible-base 2.10.12 - ansible 2.9.24 How to get it - $ pip install ansible-core==2.11.3 --user or $ pip install ansible-base==2.10.12 --user or $ pip install ansible==2.9.24 --user The tar.gz of the

[ansible-project] how to get values from dict in template with for loop ?

2021-07-19 Thread Eric Chang
I have two dict file like teams.yml { "teams": [{"gid": 10125,"location": ["hq"],"name": "aa","users": ["chenhu","chouf"]}, {"gid": 10126,"location": ["hq"],"name": "ac","users": ["guoj","yangc"]} ] } users.yml { "users": [{"name": "changc","uid": 2},

Re: [ansible-project] Stouck in Ansible

2021-07-19 Thread Dan Linder
Abdul, If you're stuck as to how to ask the question, the StackOverflow "How do I ask a good question?" is a good reference. https://stackoverflow.com/help/how-to-ask Dan On Monday, July 19, 2021 at 2:51:02 AM UTC-5 dick@geant.org wrote: > This is almost zero information to help you

[ansible-project] Re: list all files in directory and copy all content.

2021-07-19 Thread Vincent Nambatac
I suspect what would be the right value in this unarchived_list.files[0] to input to copy all directories. When I tried another number like 1,2,3 only those another directories there are being copied . On Tuesday, July 20, 2021 at 9:42:49 AM UTC+8 Vincent Nambatac wrote: > > Hi there , I

[ansible-project] list all files in directory and copy all content.

2021-07-19 Thread Vincent Nambatac
Hi there , I want to ask what approach I will do If I want to copy all content in an unzip files. I unzip the files and list all directories. the problem is I want to copy all files inside the directory but only 1 content being copied. Can somebody how to it. Here is my code. - name:

Re: [ansible-project] question about tags

2021-07-19 Thread Doug Hunley
I find https://docs.ansible.com/ansible/2.8/reference_appendices/special_variables.html to be a gold mine for these kinds of things. Just match it with whatever version of Ansible you're supporting. On Mon, Jul 19, 2021 at 3:56 PM John Petro wrote: > oh, that is cool. I didn't know about that

Re: [ansible-project] question about tags

2021-07-19 Thread John Petro
oh, that is cool. I didn't know about that one. Thanks, I will check it out. --John On Mon, Jul 19, 2021 at 3:48 PM Doug Hunley wrote: > You could inspect ansible_run_tags and see if those three tags are not in > it. > > On Mon, Jul 19, 2021 at 3:44 PM John Petro wrote: > >> I have a bit of

Re: [ansible-project] question about tags

2021-07-19 Thread Doug Hunley
You could inspect ansible_run_tags and see if those three tags are not in it. On Mon, Jul 19, 2021 at 3:44 PM John Petro wrote: > I have a bit of a problem, and was wondering if anyone has ever done > something like this. I have a playbook I am working on, where it updates > firewalld rules

[ansible-project] question about tags

2021-07-19 Thread John Petro
I have a bit of a problem, and was wondering if anyone has ever done something like this. I have a playbook I am working on, where it updates firewalld rules for some kubernetes clusters we have. Rather than have a playbook per cluster, we elected to use tags, one for prod, one for nonprod, and

Re: [ansible-project] Ansible network module ios_config dont work on my fs S3260switch

2021-07-19 Thread Antony Stone
On Monday 19 July 2021 at 19:13:21, Tiago Oliveira wrote: > I actually dont have anything of the module done. So, how are you getting the error "this operation requires privilege escalation"? > I wanted to see the ios_config module and how it was done so i could have > an ideia of what to do..

Re: [ansible-project] Ansible network module ios_config dont work on my fs S3260switch

2021-07-19 Thread Tiago Oliveira
I actually dont have anything of the module done. I wanted to see the ios_config module and how it was done so i could have an ideia of what to do.. but i cant find the documentation and the how to do that module. About the fs.com switches, the one i am trying to use is a lot similar to cisco

Re: [ansible-project] Ansible network module ios_config dont work on my fs S3260switch

2021-07-19 Thread Antony Stone
On Monday 19 July 2021 at 18:52:32, Mythicale wrote: > my boss ask me to try to "create" a module like ios_config but that fs.com > accept it. > > Right now when i try to use it on fs switch, it says that this operation > requires privilege escalation, if i use ios_command the operations works.

[ansible-project] Ansible network module ios_config dont work on my fs S3260switch

2021-07-19 Thread Mythicale
Hello! I finishing my course beeing an intern on a company, and my project is switch automation with ansible. With the cisco switch its not hard, but fs.com switches although they are similar to cisco, dont accept some modules, like, ios_config, and my boss ask me to try to "create" a module

[ansible-project] Ansible play freezes and never completes after copying part of the files using synchronize module

2021-07-19 Thread Mohtashim S
Below is my playbook that helps transfer a set of files from remote source to local directory. - name: "Play 1.5" hosts: "{{ groups['dest_nodes'] | default(groups['all']) }}" serial: 1 gather_facts: false vars: ansible_host_key_checking: false ansible_ssh_extra_args:

Re: [ansible-project] Stouck in Ansible

2021-07-19 Thread Dick Visser
This is almost zero information to help you with. Please provide more details. On Mon, 19 Jul 2021 at 09:15, Abdul Waheed Khan wrote: > Hi everyone, > i am new in this forum . i am configuring ansible (tyk-ansible) but stuck > in . > please help me. > Regards, > Abdul waheed > > -- > You

[ansible-project] lineinfile is skipped if one of the task ignored

2021-07-19 Thread Hanumantha Reddy Basireddy
Hi All, I have a playbook as follows: --- - hosts: all gather_facts: no ignore_unreachable: true tasks: - command: "{{ item }}" loop: - "ls" - "df -h" register: files ignore_errors: true - name: delegate command: ls register: files2 delegate_to:

[ansible-project] Stouck in Ansible

2021-07-19 Thread Abdul Waheed Khan
Hi everyone, i am new in this forum . i am configuring ansible (tyk-ansible) but stuck in . please help me. Regards, Abdul waheed -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails