-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
30 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,32 +5,32 @@ | |
gather_facts: false | ||
|
||
tasks: | ||
- name: check git works | ||
ansible.builtin.command: # noqa: command-instead-of-module | ||
cmd: git version | ||
register: out | ||
changed_when: false | ||
failed_when: | ||
- out.rc != 0 | ||
- name: check git works | ||
ansible.builtin.command: # noqa: command-instead-of-module | ||
cmd: git version | ||
register: out | ||
changed_when: false | ||
failed_when: | ||
- out.rc != 0 | ||
|
||
- name: check runscript installed | ||
ansible.builtin.command: | ||
cmd: "which potos-ansible-pull" | ||
register: out | ||
changed_when: false | ||
failed_when: | ||
- out.rc != 0 | ||
- name: check runscript installed | ||
ansible.builtin.command: | ||
cmd: "which potos-ansible-pull" | ||
register: out | ||
changed_when: false | ||
failed_when: | ||
- out.rc != 0 | ||
|
||
- name: Just force systemd to reread configs | ||
ansible.builtin.systemd: | ||
daemon_reload: yes | ||
- name: Just force systemd to reread configs | ||
ansible.builtin.systemd: | ||
daemon_reload: yes | ||
|
||
- name: Populate service facts | ||
ansible.builtin.service_facts: | ||
- name: Populate service facts | ||
ansible.builtin.service_facts: | ||
|
||
- name: check systemd services are defined | ||
ansible.builtin.assert: | ||
that: | ||
- ansible_facts.services['[email protected]'] is defined | ||
- ansible_facts.services['[email protected]'] is defined | ||
- ansible_facts.services['[email protected]'] is defined | ||
- name: check systemd services are defined | ||
ansible.builtin.assert: | ||
that: | ||
- ansible_facts.services['[email protected]'] is defined | ||
- ansible_facts.services['[email protected]'] is defined | ||
- ansible_facts.services['[email protected]'] is defined |