[ansible-project] Yaml statement over multiple lines.

2018-02-13 Thread mail . philfriend
Hi,

How should I split this dest: statement into multiple lines ?

- copy:
content: "{{ config.stdout[0] }}"
*dest: "{{ backup_root }}/{{ inventory_hostname }}/dhcp_leases_{{ 
ansible_date_time.year }}{{ ansible_date_time.month }}{{ 
ansible_date_time.day }}{{ ansible_date_time.hour }}{{ 
ansible_date_time.minute }}{{ ansible_date_time.second }}"*


Thanks in advance,

Phil.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5ef51658-223d-48c0-9ad8-1e9bc7d12730%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Schedule Playbook with crontab

2017-07-13 Thread mail . philfriend
Thank you so much Brian, it works perfectly.

On Wednesday, July 12, 2017 at 6:08:25 PM UTC+2, Brian Coca wrote:
>
> bin/ansible is for Adhoc tasks, you want bin/ansible-playbook is for 
> executing playbooks 
>
> this makes no sense: 
> /usr/bin/ansible /home/ansibleuser/ansible/playbooks/ansible-playbook 
> device_bak_2.yml 
>
> I think you want: 
> /usr/bin/ansible-playbook 
>  /home/ansibleuser/ansible/playbooks/device_bak_2.yml 
>
>
> -- 
> -- 
> Brian Coca 
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/31de5f88-f14d-4833-acee-c02abc65c3e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Schedule Playbook with crontab

2017-07-13 Thread mail . philfriend


On Wednesday, July 12, 2017 at 6:08:25 PM UTC+2, Brian Coca wrote:
>
> bin/ansible is for Adhoc tasks, you want bin/ansible-playbook is for 
> executing playbooks 
>
> this makes no sense: 
> /usr/bin/ansible /home/ansibleuser/ansible/playbooks/ansible-playbook 
> device_bak_2.yml 
>
> I think you want: 
> /usr/bin/ansible-playbook 
>  /home/ansibleuser/ansible/playbooks/device_bak_2.yml 
>
>
> -- 
> -- 
> Brian Coca 
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/cc694a56-25b5-4abc-bfd1-2d6066e2358a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.