diff options
author | Larry Smith Jr <mrlesmithjr@gmail.com> | 2017-04-07 00:34:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-07 00:34:22 -0400 |
commit | b82d79a58aec82d4287f105843b35d5c7a242882 (patch) | |
tree | 9a35464b6c144b84f941500e9543e54ee457c042 | |
parent | 16dd29dd68381a3771b0c0cf84d05d1dfed05367 (diff) | |
parent | 29203a454c495039001f59cd9204d33013f6c2f4 (diff) | |
download | ansible-rabbitmq-b82d79a58aec82d4287f105843b35d5c7a242882.tar.gz ansible-rabbitmq-b82d79a58aec82d4287f105843b35d5c7a242882.tar.zst ansible-rabbitmq-b82d79a58aec82d4287f105843b35d5c7a242882.zip |
Merge pull request #8 from userlocalhost/bugfix/playbook
Corrected an argument which is passed to 'with_items' of the 'lineinfile' module for evaluating list value
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | playbook.yml | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -90,7 +90,7 @@ Example Playbook | |||
90 | regexp: "^{{ hostvars[item].ansible_ssh_host }} {{ item }} {{ item }}.{{ pri_domain_name }}" | 90 | regexp: "^{{ hostvars[item].ansible_ssh_host }} {{ item }} {{ item }}.{{ pri_domain_name }}" |
91 | line: "{{ hostvars[item].ansible_ssh_host }} {{ item }} {{ item }}.{{ pri_domain_name }}" | 91 | line: "{{ hostvars[item].ansible_ssh_host }} {{ item }} {{ item }}.{{ pri_domain_name }}" |
92 | state: present | 92 | state: present |
93 | with_items: groups['all'] | 93 | with_items: "{{ groups['all'] }}" |
94 | 94 | ||
95 | - hosts: all | 95 | - hosts: all |
96 | become: true | 96 | become: true |
diff --git a/playbook.yml b/playbook.yml index 33cf1ab..1968320 100644 --- a/playbook.yml +++ b/playbook.yml | |||
@@ -11,7 +11,7 @@ | |||
11 | regexp: "^{{ hostvars[item].ansible_ssh_host }} {{ item }} {{ item }}.{{ pri_domain_name }}" | 11 | regexp: "^{{ hostvars[item].ansible_ssh_host }} {{ item }} {{ item }}.{{ pri_domain_name }}" |
12 | line: "{{ hostvars[item].ansible_ssh_host }} {{ item }} {{ item }}.{{ pri_domain_name }}" | 12 | line: "{{ hostvars[item].ansible_ssh_host }} {{ item }} {{ item }}.{{ pri_domain_name }}" |
13 | state: present | 13 | state: present |
14 | with_items: groups['all'] | 14 | with_items: "{{ groups['all'] }}" |
15 | 15 | ||
16 | - hosts: all | 16 | - hosts: all |
17 | become: true | 17 | become: true |