Skip to content

Commit

Permalink
Merge pull request #10 from projectpotos/fix-wrong-service-exec-dir
Browse files Browse the repository at this point in the history
fix: wrong exec dir
  • Loading branch information
Schroeffu authored Jan 18, 2023
2 parents 98e0739 + 8876ee3 commit 23bcc6e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 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
2 changes: 1 addition & 1 deletion templates/etc/systemd/system/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ AssertPathExists={{ potos_basics_ansible_workdir }}

[Service]
Type=oneshot
ExecStart=/usr/sbin/{{ potos_basics_client_name | lower }}-ansible-pull -r %i
ExecStart=/usr/bin/{{ potos_basics_client_name | lower }}-ansible-pull -r %i

0 comments on commit 23bcc6e

Please sign in to comment.