Skip to content

Commit

Permalink
implemented rundeck_files
Browse files Browse the repository at this point in the history
  • Loading branch information
zerwes committed Nov 15, 2024
1 parent 5d70589 commit f7e164a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,11 @@ rundeck_plugins: {}
# rundeck_plugins:
# "ansible-plugin.jar": "https://github.com/rundeck-plugins/ansible-plugin/releases/download/v4.0.5/ansible-plugin-4.0.5.jar"
# "another-plugin.zip": absent # remove plugin

# dict of files to install in addition
# src file => dest file
# all files will have rundec:rundeck owner w/ 0640 perms
rundeck_files: {}
# example:
# rundeck_files:
# "rundeck-keystore": "{{ rundeck_etc }}/ssl/keystore"
10 changes: 10 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,13 @@
notify: rundeck service
with_dict: "{{ rundeck_plugins }}"
when: item.value == "absent"

- name: install additional files
ansible.builtin.copy:
src: "{{ item.key}}"

Check warning on line 97 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / build

jinja[spacing]

Jinja2 spacing could be improved: {{ item.key}} -> {{ item.key }}
dest: "{{ item.value }}"
mode: '0640'
owner: rundeck
group: rundeck
notify: rundeck service
with_dict: "{{ rundeck_files }}"

0 comments on commit f7e164a

Please sign in to comment.