Download:
child 7:a2442a06678e
parent 5:4b6b5454b6af
6:802e874c8c26
Anton Shestakov <av6@dwimlabs.net>, Fri, 01 Apr 2016 01:55:45 +0800
pre_tasks: looks line hostname module writes correct /etc/hostname already

1 файлов изменено, 0 вставок(+), 2 удалений(-) [+]
playbook-example.yml file | annotate | diff | comparison | revisions
--- a/playbook-example.yml Tue Mar 29 21:29:27 2016 +0000
+++ b/playbook-example.yml Fri Apr 01 01:55:45 2016 +0800
@@ -10,8 +10,6 @@
# records for hg.mydomain or add it to /etc/hosts.
- name: Set hostname
hostname: name={{ hostname }}
- - name: Update /etc/hostname
- shell: echo '{{ hostname }}' > /etc/hostname
- name: Update /etc/hosts
shell: echo '127.0.0.1 {{ hostname }}' >> /etc/hosts