From 880e7ccf08e7bb3883469bc94fc792e94a2c76dc Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman <rjeffman@redhat.com> Date: Thu, 27 Aug 2020 16:26:18 -0300 Subject: [PATCH] Fix host's module managedby_host playbooks. The host's module example playbooks had syntax errors that prevented its execution. The tasks were described as dicts rather than lists. --- playbooks/host/host-member-managedby_host-absent.yml | 2 +- playbooks/host/host-member-managedby_host-present.yml | 2 +- playbooks/host/host-present-with-managedby_host.yml | 2 +- playbooks/host/hosts-member-managedby_host-absent.yml | 1 + playbooks/host/hosts-member-managedby_host-present.yml | 1 + playbooks/host/hosts-present-with-managedby_host.yml | 2 +- playbooks/host/hosts-present-with-randompasswords.yml | 1 - 7 files changed, 6 insertions(+), 5 deletions(-) diff --git a/playbooks/host/host-member-managedby_host-absent.yml b/playbooks/host/host-member-managedby_host-absent.yml index e9fc6b4c..2fd88683 100644 --- a/playbooks/host/host-member-managedby_host-absent.yml +++ b/playbooks/host/host-member-managedby_host-absent.yml @@ -4,7 +4,7 @@ become: true tasks: - ipahost: + - ipahost: ipaadmin_password: SomeADMINpassword name: host01.exmaple.com managedby_host: server.exmaple.com diff --git a/playbooks/host/host-member-managedby_host-present.yml b/playbooks/host/host-member-managedby_host-present.yml index c00548cf..1f326384 100644 --- a/playbooks/host/host-member-managedby_host-present.yml +++ b/playbooks/host/host-member-managedby_host-present.yml @@ -4,7 +4,7 @@ become: true tasks: - ipahost: + - ipahost: ipaadmin_password: SomeADMINpassword name: host01.exmaple.com managedby_host: server.exmaple.com diff --git a/playbooks/host/host-present-with-managedby_host.yml b/playbooks/host/host-present-with-managedby_host.yml index 51a1c21f..51b9662e 100644 --- a/playbooks/host/host-present-with-managedby_host.yml +++ b/playbooks/host/host-present-with-managedby_host.yml @@ -4,7 +4,7 @@ become: true tasks: - ipahost: + - ipahost: ipaadmin_password: SomeADMINpassword name: host01.exmaple.com managedby_host: server.exmaple.com diff --git a/playbooks/host/hosts-member-managedby_host-absent.yml b/playbooks/host/hosts-member-managedby_host-absent.yml index 40ae3b7d..0866dffa 100644 --- a/playbooks/host/hosts-member-managedby_host-absent.yml +++ b/playbooks/host/hosts-member-managedby_host-absent.yml @@ -4,6 +4,7 @@ become: true tasks: + - name: Ensure hosts manadegby_host is absent. ipahost: ipaadmin_password: SomeADMINpassword hosts: diff --git a/playbooks/host/hosts-member-managedby_host-present.yml b/playbooks/host/hosts-member-managedby_host-present.yml index fe70a59f..deb0ae60 100644 --- a/playbooks/host/hosts-member-managedby_host-present.yml +++ b/playbooks/host/hosts-member-managedby_host-present.yml @@ -4,6 +4,7 @@ become: true tasks: + - name: Ensure hosts manadegby_host is absent. ipahost: ipaadmin_password: SomeADMINpassword hosts: diff --git a/playbooks/host/hosts-present-with-managedby_host.yml b/playbooks/host/hosts-present-with-managedby_host.yml index 262f6c1d..610e20c1 100644 --- a/playbooks/host/hosts-present-with-managedby_host.yml +++ b/playbooks/host/hosts-present-with-managedby_host.yml @@ -4,7 +4,7 @@ become: true tasks: - ipahost: + - ipahost: ipaadmin_password: SomeADMINpassword hosts: - name: host01.exmaple.com diff --git a/playbooks/host/hosts-present-with-randompasswords.yml b/playbooks/host/hosts-present-with-randompasswords.yml index 5a1ea9c0..8f330c0d 100644 --- a/playbooks/host/hosts-present-with-randompasswords.yml +++ b/playbooks/host/hosts-present-with-randompasswords.yml @@ -23,4 +23,3 @@ - name: Print generated random password for host02.example.com debug: var: ipahost.host["host02.example.com"].randompassword - -- GitLab