Re: [ansible-project] Re: issue with ansible dry-run mode (--check) on package installation tasks (yum and apt modules)

2018-05-12 Thread Kai Stian Olstad
On 11.05.2018 22:42, js.a wrote: Ok guys, I got the point "--check doesn't make any changes to the system" after making more tests with tasks coupling (Task2 relies on previous executed Task1), --check mode will never work for these cases. Therefore, i will change my test pipeline to discard dr

[ansible-project] creating new dictionary from existing dictionary

2018-05-12 Thread Ali Khawaja
Hi Everyone, I am trying to read a dict from a file (list of user ids), and create another dict with key/value pairs (user ids with passwords). But once my script completes, the new dictionary only has the final item. Every previous items gets overwritten with the new item instead of new ite

Re: [ansible-project] creating new dictionary from existing dictionary

2018-05-12 Thread David Villasmil
Try with var: "{{ var + item.pass }}" Cheers On Sat, May 12, 2018, 17:36 Ali Khawaja wrote: > Hi Everyone, > > > > I am trying to read a dict from a file (list of user ids), and create > another dict with key/value pairs (user ids with passwords). But once my > script completes, the new dicti

Re: [ansible-project] Loop through the contents of include_vars file via a shell module

2018-05-12 Thread Kai Stian Olstad
On 10.05.2018 16:42, Saranya N wrote: I want to replicate a shell script that loops through the contents of a text.file For i in `cat text.file` I tried below and got an error. I'm not getting which logic to use. Kindly advise. - name: Load the variables include_vars: file: /home/de

Re: [ansible-project] Re: Ansible - roles and tasks execution handling in playbook

2018-05-12 Thread Kai Stian Olstad
On 08.05.2018 06:25, Ankur Gupta wrote: both serial and max_fail_percentage do not work for this case. because I need to skip the remaining roles. Skipping the reminder roles/task is not a problem, that just a matter of setting any_errors_fatal: true The challenge is that you need to run a ta

Re: [ansible-project] Re: Setting up kerberos

2018-05-12 Thread Mauricio Tavares
On Mon, May 7, 2018 at 11:57 PM, Michael Pechner wrote: > Are you looking to setup a KDC? > Install client packages? > Setup the config files? > Oops. I meant deploy a client from package to config. > On Mon, May 7, 2018 at 7:26 PM, Jordan Borean wrote: >> >> This is a very vague question, wha

Re: [ansible-project] Re: Setting up kerberos

2018-05-12 Thread Mauricio Tavares
On Sat, May 12, 2018 at 9:08 PM, Mauricio Tavares wrote: > On Mon, May 7, 2018 at 11:57 PM, Michael Pechner wrote: >> Are you looking to setup a KDC? >> Install client packages? >> Setup the config files? >> > > Oops. I meant deploy a client from package to config. > Let me elaborate: I thi

RE: [ansible-project] creating new dictionary from existingdictionary

2018-05-12 Thread Ali Khawaja
I tried the following as well: - set_fact: domain_accounts: "{{ domain_accounts|default([]) + [{item|trim: lookup(...)}] }}" with_items: "{{account_list.accounts}}" - name: look up password debug: msg: '{{ domain_accounts["PR_user2"] }}' I get the following output (cleane