[ansible-project] Re: Ubuntu overlayroot

2017-10-20 Thread Sam Thomas
I should mention that I can do command: overlayroot-chroot apt-get install {{ package }} However I would like to use Ansible's apt: On Friday, 20 October 2017 13:44:24 UTC+8, Sam Thomas wrote: > > Hi everyone, > > I am using Ubuntu's overlayroot to protect the filesystem from power loss > events

Re: [ansible-project] AUTOMATE SFTP USING PEXPECT IN YAML SCRIPT NOT WORKING...

2017-10-20 Thread Kai Stian Olstad
On 19.10.2017 21:28, Zimidar Boy wrote: "command": "ssh \"hurry-up-1\"", "creates": null, "echo": false, "removes": null, "responses": { "(?i)root": "tar cvf \"$HOSTNAME\"_`date +\"%Y-%m-%d_%H.%M.%S\"`.tar test\nexit\n"

[ansible-project] Need help

2017-10-20 Thread parwinderjit singh
Hi All, i have a below inventory file [ansible] parv-vm-01 ansible_ssh_host=10.48.21.99 host_fqdn=parv-vm-01 [cloudera_mysql] parv-vm-02 ansible_ssh_host=10.48.21.94 host_fqdn=parv-vm-02 [cloudera_manager] [cloudera_data] parv-vm-06 ansible_ssh_host=10.48.21.85 host_fqdn=parv-vm-06 parv-vm-07

[ansible-project] Modulo copy argumento dest ( incongruencia al usar variables )

2017-10-20 Thread jrvilda
Hola buenas, ¿por que se dan estas incongruencias al usar variables en el modulo copy en su argumento dest.? --- - hosts: localhost vars: PathLs: /etc/ansible/ Folder: /ansible/ tasks: - name: Ejecuta script script: "{{ PathLs }}ls.sh -al" register: Log_Step1

Re: [ansible-project] Wait For Host with Variable Fails

2017-10-20 Thread Ken Jenney
Kai, Thanks for the help! This works beautifully. On Friday, October 20, 2017 at 1:46:48 AM UTC-4, Kai Stian Olstad wrote: > > On 20. okt. 2017 06:08, Ken Jenney wrote: > > I use a script to find an available IP on my network and then assign > that > > IP to a system. The system is up and runn

Re: [ansible-project] How to make module work with older systems

2017-10-20 Thread mcsontos
On Thursday, October 19, 2017 at 3:11:17 PM UTC+2, Toshio Kuratomi wrote: > > > Cache invalidation is one of programming's harder problems. So, solve the > git version problem but ignore the urge to cache your results for now. > > -toshio > That's true, and ansible is already caching a good dea

Re: [ansible-project] Modulo copy argumento dest ( incongruencia al usar variables )

2017-10-20 Thread Mauricio Tavares
On Fri, Oct 20, 2017 at 8:57 AM, wrote: > Hola buenas, > > ¿por que se dan estas incongruencias al usar variables en el modulo copy en > su argumento dest.? > > > --- > - hosts: localhost > vars: > PathLs: /etc/ansible/ > Folder: /ansible/ > > tasks: > - name: Ejecuta script >

Re: [ansible-project] Modulo copy argumento dest ( incongruencia al usar variables )

2017-10-20 Thread jrvilda
*check 1: *with and without quotes are the same --- - hosts: localhost vars: PathLs: /etc/ansible/ Folder: /ansible/ tasks: - name: curiosidad con comillas debug: msg: "{{ PathLs }}logls.txt" - name: curiosidad igual debug: msg: esto es sin comillas {

Re: [ansible-project] Modulo copy argumento dest ( incongruencia al usar variables )

2017-10-20 Thread Brian Coca
Si usas {{ inmediatamente después de : , necesitas comillas o YAML asume que es un diccionario. valido: msg: "{{variable}}" invalido: msg: {{variable}} No requiere comillas si { no esta tras : valido: msg: Hola {{persona}} invalido: msg: {{saludo}} Jose Estos son requerimientos de YAM

Re: [ansible-project] Modulo copy argumento dest ( incongruencia al usar variables )

2017-10-20 Thread Mauricio Tavares
Did you check the link I gave you in my reply? On Fri, Oct 20, 2017 at 9:59 AM, wrote: > check 1: with and without quotes are the same > > --- > - hosts: localhost > vars: > PathLs: /etc/ansible/ > Folder: /ansible/ > tasks: >- name: curiosidad con comillas > debug: >

[ansible-project] Ansible Failing But SSH Connections are Successful

2017-10-20 Thread Michael Ellis
Hello Group, New to Ansible and the Project, but like what I see so far! I am running Ansible 2.4.0 on RHEL7.4. I have SSH keys setup on several hosts and can connect to the remote hosts using the SSH Key Pair from my Ansible Control node and not be prompted for passwords, all as the root use

[ansible-project] Can this be concatinated? Made more graceful?

2017-10-20 Thread John Harmon
I have the following, which works, but it just got me wondering if this can be concatenated or be written in a more graceful way? By that, I don't mean *getent: database=passwd, key=nagios* - name: Check for nagios installation getent: database: passwd key: nagios ignore_errors: ye

[ansible-project] Manage Windows Remote Servers

2017-10-20 Thread Sam Cogan
I'm currently assessing various configuration management systems for managing mostly Windows machines. I'm liking the look of Ansible so far, but I am concerned I have a fairly major blocker. I need the chosen system to be able to manage nodes that are both on a local network (which is fine) an

Re: [ansible-project] Re: Using parted module ..I am unable to create multiple partitions on the disk.

2017-10-20 Thread coach rhca
`Thank you for help...I was able to figure out... On Sat, Oct 21, 2017 at 9:45 AM, wrote: > > > On Thursday, October 19, 2017 at 1:39:45 PM UTC+5:30, mcso...@redhat.com > wrote: >> >> This looks like you are trying to create overlapping partitions. I have >> not tried it, but to me looks like yo

[ansible-project] Issue while executing YAML script

2017-10-20 Thread Sawant
[root@ggnmaster2 jenkins]# ls hosts site.yml [root@ggnmaster2 jenkins]# more site.yml --- - hosts: jenkins_hosts roles: - geerlingguy.apache #- { role: "geerlingguy.apache" } [root@ggnmaster2 jenkins]# vi site.yml [root@ggnmaster2 jenkins]# ansible-playbook site.yml ERROR! Syntax Error while loadi