Skip to content
Snippets Groups Projects
Commit df4be7b3 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

refactor: use loop to deploy config files

parent c526443d
No related branches found
No related tags found
No related merge requests found
--- ---
### SQUID-PROXY KONFIGURIEREN & NEU STARTEN ### ### SQUID-PROXY KONFIGURIEREN & NEU STARTEN ###
- name: Konfigurationsdateien einspielen - squid.conf - name: Konfigurationsdateien einspielen
ansible.builtin.copy: ansible.builtin.copy:
src: "{{ role_path }}/../ansible_vaults/{{ role_name }}/files/etc/squid3/squid.conf.vault" src: "{{ item.src }}"
dest: "/etc/squid/squid.conf" dest: "{{ item.dest }}"
mode: "0644" mode: "{{ item.mode | default('0644') }}"
loop:
# Squid config
- src: "{{ role_path }}/../ansible_vaults/{{ role_name }}/files/etc/squid3/squid.conf.vault"
dest: "/etc/squid/squid.conf"
# Logrotate config
- src: "etc/logrotate.d/squid3"
dest: "/etc/logrotate.d/squid3"
notify: notify:
- restart squid proxy - restart squid proxy
- name: Konfigurationsdateien einspielen - logrotate
ansible.builtin.copy:
src: "etc/logrotate.d/squid3"
dest: "/etc/logrotate.d/squid3"
mode: "0644"
notify:
- restart squid proxy
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment