fix dir creation for scripts
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
# https://docs.ansible.com/ansible/latest/collections/ansible/builtin/copy_module.html
|
# https://docs.ansible.com/ansible/latest/collections/ansible/builtin/copy_module.html
|
||||||
|
# https://docs.ansible.com/projects/ansible/latest/collections/ansible/builtin/file_module.html
|
||||||
# https://docs.ansible.com/ansible/latest/collections/ansible/builtin/service_module.html
|
# https://docs.ansible.com/ansible/latest/collections/ansible/builtin/service_module.html
|
||||||
|
# https://docs.ansible.com/projects/ansible/latest/collections/ansible/builtin/command_module.html
|
||||||
---
|
---
|
||||||
- name: delete .runner file for redeploy
|
- name: delete .runner file for redeploy
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
@@ -29,6 +31,12 @@
|
|||||||
name: "{{ RUNNER_SERVICE_NAME }}"
|
name: "{{ RUNNER_SERVICE_NAME }}"
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
||||||
|
- name: create scripts dir
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ RUNNER_SCRIPT_DIR }}"
|
||||||
|
state: directory
|
||||||
|
mode: '0755'
|
||||||
|
|
||||||
- name: create default scripts
|
- name: create default scripts
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
dest: "{{ RUNNER_SCRIPT_DIR }}/{{ item.name }}"
|
dest: "{{ RUNNER_SCRIPT_DIR }}/{{ item.name }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user