Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
fadnincx committed Jan 18, 2023
1 parent db67d2e commit 8876ee3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
10 changes: 5 additions & 5 deletions molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
gather_facts: true

tasks:
# Update the apt cache as it's potentialy outdated in the container
- name: update apt
ansible.builtin.shell: # noqa: command-instead-of-module
cmd: 'apt-get update && apt-get upgrade -y'
when: ansible_distribution == 'Ubuntu'
# Update the apt cache as it's potentialy outdated in the container
- name: update apt
ansible.builtin.shell: # noqa: command-instead-of-module
cmd: 'apt-get update && apt-get upgrade -y'
when: ansible_distribution == 'Ubuntu'
50 changes: 25 additions & 25 deletions molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8876ee3

Please sign in to comment.