Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#150 Update syntax for Ansible v2 #151

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ansible/roles/hkcam/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
- include: install.yml
- include_tasks: install.yml
tags: [install]

- include: configure.yml
- include_tasks: configure.yml
tags: [configure]

- import_role:
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/runit/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
file: path={{ runit_runsvdir_dir }} mode=0755 state=directory

- name: Check if {{ runit_startup_file }} exists
stat: path={{ runit_startup_file }} get_md5=no get_checksum=no
stat: path={{ runit_startup_file }} get_checksum=no
register: file

- name: Create startup script at {{ runit_startup_file }}
Expand All @@ -33,4 +33,4 @@
shell: sed -i -e '$i {{ runit_startup_file }} &\n' /etc/rc.local
args:
warn: false
when: check.rc != 0
when: check is defined and check.rc is defined and check.rc != 0
10 changes: 5 additions & 5 deletions ansible/roles/runit/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
- include: install.yml
- include_tasks: install.yml

- include: add.yml
- include_tasks: add.yml
when: service_name is defined

- include: enabled.yml
- include_tasks: enabled.yml
when: enabled is defined and service_name is defined

- include: envs.yml
- include_tasks: envs.yml
when: envs is defined and service_name is defined

- include: state.yml
- include_tasks: state.yml
when: state is defined and service_name is defined