This commit is contained in:
havelight-ee
2023-06-16 17:34:32 +09:00
parent cd2f40c08d
commit a4a3c489da
10 changed files with 281 additions and 16 deletions

View File

@@ -8,8 +8,33 @@
group: root
with_items:
- /etc/datasaker
when:
- ansible_facts.os_family in ["Debian", "RedHat"]
- datasaker_agents
- name: "Setting global-config"
template:
src: global-config.yml.j2
dest: "/etc/datasaker/global-config.yml"
dest: "/etc/datasaker/global-config.yml"
when:
- ansible_facts.os_family in ["Debian", "RedHat"]
- datasaker_agents
- name: "Make Datasaker Directory"
ansible.builtin.file:
path: "{{ item }}"
state: directory
recurse: yes
owner: root
group: root
with_items:
- "{{ datasaker_docker_config_path }}"
when:
- datasaker_docker_agents
- name: "Setting global-config"
template:
src: global-config.yml.j2
dest: "{{ datasaker_docker_global_config }}"
when:
- datasaker_docker_agents