[ansible-project] ansible 2.8.4 throwing errors on all playbooks

2019-09-17 Thread Andrew Meyer
I just updated CentOS 7 to the latest and now am getting this any playbook I try to run. [andrew@automation01 installer]$ ansible-playbook -i inventory install.yml - vv Traceback (most recent call last): File "/usr/bin/ansible-playbook", line 32, in from ansible import context

[ansible-project] Re: root user password needs to set for many servers however the password should be different password, not to be same

2019-09-17 Thread Dan Linder
If you're ok with Ansible generating the password for you then storing it on the machine you ran the playbook from, then the `password` plugin might help a bit. Assuming you have an inventory of servers and you're OK with saving the latest password to "/tmp/root.password.hostname.txt", I

[ansible-project] ansible windows

2019-09-17 Thread pardhu saradhi
how can i create a directory in shared/network path in windows using ansible -- 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, send an email to

Re: [ansible-project] list the all the file in directory and redirect the only file name to property file

2019-09-17 Thread Kai Stian Olstad
On 17.09.2019 17:35, Uppara venkat wrote: > but I'm working in Windows; > I used Command module as > >- name: list the files >win_command: dir /b /a-d > Use the win_find module -- Kai Stian Olstad -- You received this message because you are subscribed to the Google Groups

[ansible-project] root user password needs to set for many servers however the password should be different password, not to be same

2019-09-17 Thread Deepan M
Hi, manually login to each servers and setting root password, login to server1, set password "password123" ; then login to server2 set password "redhat123" like this i'm looking for ansible playbook, where i can automate for 100+servers. Idea looking forward:- 1, Random password needs to

Re: [ansible-project] list the all the file in directory and redirect the only file name to property file

2019-09-17 Thread Uppara venkat
but I'm working in Windows; I used Command module as - name: list the files win_command: dir /b /a-d fatal: [172.31.17.108]: FAILED! => { "changed": false, "cmd": "dir /b /a-d", "msg": "Exception calling \"SearchPath\" with \"1\" argument(s): \"Could not find file

Re: [ansible-project] list the all the file in directory and redirect the only file name to property file

2019-09-17 Thread Walber Santos
Hi uppara On Linux system we have a parameter -1 to list only names of files. Walber On Tue, 17 Sep 2019 at 10:12 AM Uppara venkat wrote: > Hi, > > wanted to list the files in a directory and copy the only file name into > property file, > using by win_shell: > > - name:list the files >

Re: [ansible-project] Permissions problem when copying file to a Solaris 10 host remote with unprivileged user

2019-09-17 Thread Vladimir Botka
On Tue, 17 Sep 2019 16:11:18 +0200 Vladimir Botka wrote: > On Tue, 17 Sep 2019 05:29:05 -0700 (PDT) > Sur Veillor wrote: > > > > setfacl "-r" option is not available in Linux. Linux man setfacl says > > > FWIW, "Solaris Working Group" might be interested to learn about it > > >

Re: [ansible-project] Permissions problem when copying file to a Solaris 10 host remote with unprivileged user

2019-09-17 Thread Vladimir Botka
On Tue, 17 Sep 2019 05:29:05 -0700 (PDT) Sur Veillor wrote: > > setfacl "-r" option is not available in Linux. Linux man setfacl says > > FWIW, "Solaris Working Group" might be interested to learn about it > > https://github.com/ansible/community/wiki/Solaris > > > Indeed, I checked the

[ansible-project] list the all the file in directory and redirect the only file name to property file

2019-09-17 Thread Uppara venkat
Hi, wanted to list the files in a directory and copy the only file name into property file, using by win_shell: - name:list the files win_shell: 'ls {{directory}} > {{directory}}/manifest.prob' register: dir_out - debug: var={{item}} with_items: dir_out.stdout_lines

Re: [ansible-project] Permissions problem when copying file to a Solaris 10 host remote with unprivileged user

2019-09-17 Thread Sur Veillor
Le mardi 17 septembre 2019 10:46:41 UTC+2, Vladimir Botka a écrit : > > > setfacl "-r" option is not available in Linux. Linux man setfacl says > >-n, --no-mask >Do not recalculate the effective rights mask. The default > behavior >of setfacl is to recalculate the

[ansible-project] How can I roll out files to multiple remote /home/* directories?

2019-09-17 Thread scorp123
I have this playbook to roll out "dot" config files: --- - hosts: linuxboxes tasks: - name: Update .* config files in $HOME copy: src: "{{ item }}" dest: /home/user1/ owner: user1 group: user1 with_fileglob: - /home/master/System_Configs/Bash-Profiles/Linux/Ubuntu/User/.* This playbook is

Re: [ansible-project] Ansible register multiple variables within a single task

2019-09-17 Thread Stefan Hornburg (Racke)
On 9/16/19 3:45 PM, Keith Mills wrote: > Hi Stefan, > > I'm working on a task for SELinux that I need to install dependencies, set > SELinux to permissive mode, etc. This is for > RHEL, SLES, and Debian. Also The policy for RHEL and Debian are named > differently (RHEL = targeted) and (Debian =

Re: [ansible-project] Download files from Jfrog

2019-09-17 Thread Richard Bywater
Assuming its a straight download then https://docs.ansible.com/ansible/latest/modules/get_url_module.html ? Richard. On Tue, 17 Sep 2019 at 21:12, Uppara venkat wrote: > Hi, > Need to download some .zip files and .exc files from Jfrog for that i'm > using python script, > > Is there any way

Re: [ansible-project] Ansible register multiple variables within a single task

2019-09-17 Thread Kai Stian Olstad
On 16.09.2019 15:45, Keith Mills wrote: Hi Stefan, I'm working on a task for SELinux that I need to install dependencies, set SELinux to permissive mode, etc. This is for RHEL, SLES, and Debian. Also The policy for RHEL and Debian are named differently (RHEL = targeted) and (Debian =

[ansible-project] Download files from Jfrog

2019-09-17 Thread Uppara venkat
Hi, Need to download some .zip files and .exc files from Jfrog for that i'm using python script, Is there any way to download files from General repo of Jfrog with Ansible? -- Thanks& Regards, venkatesulu.U 8147041026 -- You received this message because you are subscribed to the

Re: [ansible-project] Permissions problem when copying file to a Solaris 10 host remote with unprivileged user

2019-09-17 Thread Vladimir Botka
On Mon, 16 Sep 2019 14:28:10 -0700 (PDT) Sur Veillor wrote: > man of setfacl inform about -r option : > > -rRecalculates the permissions for the ACL > >mask entry. The permissions specified in > >the ACL mask entry are

[ansible-project] Re: customs list of paths for searching templates?

2019-09-17 Thread Soniya panwar
Hello Michael, As i understand your query you want to use custom list of jinja2 template paths. you can use fileglob module here to match all the files of a particular pattern in a directory. This module return a list of paths. Below is the example playbook: --- - hosts: localhost vars: