Skip to content
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
1 change: 1 addition & 0 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,7 @@ The handling of the state in the role can look something like this, assuming the

- name: 'Create sites-available vHosts'
ansible.builtin.template:
backup: true
src: '...'
dest: '...'
when:
Expand Down
1 change: 1 addition & 0 deletions roles/apache_httpd/tasks/confs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

- name: 'Create conf-available configs'
ansible.builtin.template:
backup: true
src: 'etc/httpd/conf-available/{{ item["template"]}}.conf.j2'
dest: '{{ apache_httpd__config_path }}/{{ apache_httpd__config_prefix }}conf-available/{{ item["filename"] }}.conf'
owner: 'root'
Expand Down
10 changes: 10 additions & 0 deletions roles/apache_tomcat/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@

- name: 'Deploy /etc/tomcat/server.xml'
ansible.builtin.template:
backup: true
src: 'etc/tomcat/{{ tomcat__installed_version }}-server.xml.j2'
dest: '/etc/tomcat/server.xml'
owner: 'root'
Expand All @@ -61,6 +62,7 @@

- name: 'Copy tomcat config /etc/sysconfig'
ansible.builtin.template:
backup: true
src: 'etc/sysconfig/{{ tomcat__installed_version }}-tomcat.j2'
dest: '/etc/sysconfig/tomcat'
owner: 'root'
Expand All @@ -69,6 +71,7 @@

- name: 'Deploy /etc/tomcat/context.xml'
ansible.builtin.template:
backup: true
src: 'etc/tomcat/{{ tomcat__installed_version }}-context.xml.j2'
dest: '/etc/tomcat/context.xml'
owner: 'root'
Expand All @@ -78,6 +81,7 @@

- name: 'Deploy /etc/tomcat/logging.properties'
ansible.builtin.template:
backup: true
src: 'etc/tomcat/{{ tomcat__installed_version }}-logging.properties.j2'
dest: '/etc/tomcat/logging.properties'
owner: 'root'
Expand All @@ -87,6 +91,7 @@

- name: 'Copy tomcat logrotate template to /etc/logrotate.d'
ansible.builtin.template:
backup: true
src: 'etc/logrotate.d/tomcat.j2'
dest: '/etc/logrotate.d/tomcat'
owner: 'root'
Expand All @@ -104,6 +109,7 @@

- name: 'Deploy /var/lib/tomcat/webapps/docs/META-INF/context.xml'
ansible.builtin.template:
backup: true
src: 'var/lib/tomcat/webapps/docs/META-INF/context.xml.j2'
dest: '/var/lib/tomcat/webapps/docs/META-INF/context.xml'
owner: 'root'
Expand All @@ -115,6 +121,7 @@

- name: 'Deploy /var/lib/tomcat/webapps/host-manager/META-INF/context.xml'
ansible.builtin.template:
backup: true
src: 'var/lib/tomcat/webapps/host-manager/META-INF/context.xml.j2'
dest: '/var/lib/tomcat/webapps/host-manager/META-INF/context.xml'
owner: 'root'
Expand All @@ -126,6 +133,7 @@

- name: 'Deploy /var/lib/tomcat/webapps/manager/META-INF/context.xml'
ansible.builtin.template:
backup: true
src: 'var/lib/tomcat/webapps/manager/META-INF/context.xml.j2'
dest: '/var/lib/tomcat/webapps/manager/META-INF/context.xml'
owner: 'root'
Expand All @@ -137,6 +145,7 @@

- name: 'Deploy /var/lib/tomcat/webapps/manager/WEB-INF/web.xml'
ansible.builtin.template:
backup: true
src: 'var/lib/tomcat/webapps/manager/WEB-INF/web.xml.j2'
dest: '/var/lib/tomcat/webapps/manager/WEB-INF/web.xml'
owner: 'root'
Expand All @@ -159,6 +168,7 @@

- name: 'Deploy /etc/tomcat/tomcat-users.xml'
ansible.builtin.template:
backup: true
src: 'etc/tomcat/{{ tomcat__installed_version }}-tomcat-users.xml.j2'
dest: '/etc/tomcat/tomcat-users.xml'
owner: 'root'
Expand Down
1 change: 1 addition & 0 deletions roles/audit/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

- name: 'Deploy /etc/audit/auditd.conf'
ansible.builtin.template:
backup: true
src: 'etc/audit/auditd.conf.j2'
dest: '/etc/audit/auditd.conf'
owner: 'root'
Expand Down
3 changes: 3 additions & 0 deletions roles/bind/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

- name: 'Deploy /etc/sysconfig/named'
ansible.builtin.template:
backup: true
src: 'etc/sysconfig/named.j2'
dest: '/etc/sysconfig/named'
owner: 'root'
Expand All @@ -24,6 +25,7 @@

- name: 'Deploy /etc/named.conf'
ansible.builtin.template:
backup: true
src: 'etc/named.conf.j2'
dest: '/etc/named.conf'
owner: 'root'
Expand All @@ -40,6 +42,7 @@

- name: 'Deploy the forward and reverse zones'
ansible.builtin.template:
backup: true
src: 'var/named/raw.zone.j2'
dest: '/var/named/{{ item["file"] | d(item["name"] ~ ".zone") }}'
owner: 'root'
Expand Down
2 changes: 2 additions & 0 deletions roles/borg_local/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

- name: 'Deploy /etc/borg/borg-passphrase'
ansible.builtin.template:
backup: true
src: 'etc/borg/borg-passphrase.j2'
dest: '/etc/borg/borg-passphrase'
owner: 'root'
Expand All @@ -43,6 +44,7 @@

- name: 'Deploy /etc/borg/borg.conf'
ansible.builtin.template:
backup: true
src: 'etc/borg/borg.conf.j2'
dest: '/etc/borg/borg.conf'
owner: 'root'
Expand Down
1 change: 1 addition & 0 deletions roles/chrony/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

- name: 'Deploy /etc/chrony.conf'
ansible.builtin.template:
backup: true
src: 'etc/chrony.conf.j2'
dest: '/etc/chrony.conf'
mode: 0o644
Expand Down
7 changes: 7 additions & 0 deletions roles/clamav/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

- name: 'Deploy /etc/systemd/system/clamav-clamonacc.service.d/fdpass.conf'
ansible.builtin.template:
backup: true
src: 'etc/systemd/system/clamav-clamonacc.service.d/fdpass.conf.j2'
dest: '/etc/systemd/system/clamav-clamonacc.service.d/fdpass.conf'
owner: 'root'
Expand Down Expand Up @@ -50,6 +51,7 @@

- name: 'Deploy /etc/logrotate.d/clamav'
ansible.builtin.template:
backup: true
src: 'etc/logrotate.d/clamav.j2'
dest: '/etc/logrotate.d/clamav'
owner: 'root'
Expand All @@ -64,6 +66,7 @@

- name: 'Deploy /etc/clamd.d/scan.conf'
ansible.builtin.template:
backup: true
src: 'etc/clamd.d/scan.conf.j2'
dest: '/etc/clamd.d/scan.conf'
owner: 'root'
Expand All @@ -82,6 +85,7 @@

- name: 'Deploy /etc/freshclam.conf'
ansible.builtin.template:
backup: true
src: 'etc/freshclam.conf.j2'
dest: '/etc/freshclam.conf'
owner: 'root'
Expand All @@ -98,6 +102,7 @@

- name: 'Deploy /var/lib/clamav/lfops_whitelist.ign2'
ansible.builtin.template:
backup: true
src: 'var/lib/clamav/lfops_whitelist.ign2.j2'
dest: '/var/lib/clamav/lfops_whitelist.ign2'
owner: 'root'
Expand All @@ -107,6 +112,7 @@

- name: 'Deploy /var/lib/clamav/lfops_whitelist.fp'
ansible.builtin.template:
backup: true
src: 'var/lib/clamav/lfops_whitelist.fp.j2'
dest: '/var/lib/clamav/lfops_whitelist.fp'
owner: 'root'
Expand All @@ -116,6 +122,7 @@

- name: 'Deploy /etc/clamd.d/clamdscan.filelist'
ansible.builtin.template:
backup: true
src: 'etc/clamd.d/clamdscan.filelist.j2'
dest: '/etc/clamd.d/clamdscan.filelist'
owner: 'root'
Expand Down
2 changes: 2 additions & 0 deletions roles/collabora/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@

- name: 'deploy /etc/coolwsd/coolwsd.xml (v{{ collabora__installed_version }}{{ collabora__use_code | bool | ternary("-code", "") }})'
ansible.builtin.template:
backup: true
src: 'etc/coolwsd/{{ collabora__installed_version }}-coolwsd{{ collabora__use_code | bool | ternary("-code", "") }}.xml.j2'
dest: '/etc/coolwsd/coolwsd.xml'
owner: 'cool'
Expand All @@ -54,6 +55,7 @@

- name: 'Deploy /etc/logrotate.d/coolwsd'
ansible.builtin.template:
backup: true
src: 'etc/logrotate.d/coolwsd.j2'
dest: '/etc/logrotate.d/coolwsd'
owner: 'root'
Expand Down
1 change: 1 addition & 0 deletions roles/coturn/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

- name: 'Deploy /etc/coturn/turnserver.conf'
ansible.builtin.template:
backup: true
src: 'etc/coturn/turnserver.conf.j2'
dest: '/etc/coturn/turnserver.conf'
owner: 'root'
Expand Down
1 change: 1 addition & 0 deletions roles/crypto_policy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- name: 'Deploy /etc/crypto-policies/policies/modules/*.pmod'
ansible.builtin.template:
backup: true
src: '{{ item }}'
dest: '/etc/crypto-policies/policies/modules/{{ item | basename | split(".") | first }}.pmod'
owner: 'root'
Expand Down
1 change: 1 addition & 0 deletions roles/docker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

- name: 'Deploy /etc/docker/daemon.json'
ansible.builtin.template:
backup: true
src: 'etc/docker/daemon.json.j2'
dest: '/etc/docker/daemon.json'
mode: 0o640
Expand Down
4 changes: 4 additions & 0 deletions roles/duplicity/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@

- name: 'Deploy /etc/duba/duba.json'
ansible.builtin.template:
backup: true
src: 'etc/duba/duba.json.j2'
dest: '/etc/duba/duba.json'
mode: 0o600 # file contains secrets

- name: 'Deploy /etc/systemd/system/duba.service'
ansible.builtin.template:
backup: true
src: 'etc/systemd/system/duba.service.j2'
dest: '/etc/systemd/system/duba.service'
owner: 'root'
Expand All @@ -84,6 +86,7 @@

- name: 'Deploy /etc/logrotate.d/duplicity'
ansible.builtin.template:
backup: true
src: 'etc/logrotate.d/duplicity.j2'
dest: '/etc/logrotate.d/duplicity'
owner: 'root'
Expand All @@ -98,6 +101,7 @@

- name: 'Deploy /usr/local/bin/duba'
ansible.builtin.template:
backup: true
src: 'usr/local/bin/duba.j2'
dest: '/usr/local/bin/duba'
owner: 'root'
Expand Down
4 changes: 4 additions & 0 deletions roles/fail2ban/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

- name: 'Deploy actions'
ansible.builtin.template:
backup: true
src: 'etc/fail2ban/action.d/{{ item }}.conf.j2'
dest: '/etc/fail2ban/action.d/{{ item }}.conf'
owner: 'root'
Expand All @@ -38,6 +39,7 @@

- name: 'Deploy filters'
ansible.builtin.template:
backup: true
src: 'etc/fail2ban/filter.d/{{ item }}.conf.j2'
dest: '/etc/fail2ban/filter.d/{{ item }}.conf'
owner: 'root'
Expand All @@ -51,6 +53,7 @@

- name: 'Deploy /etc/fail2ban/jail.d/z00-defaults.conf'
ansible.builtin.template:
backup: true
src: 'etc/fail2ban/jail.d/z00-defaults.conf.j2'
dest: '/etc/fail2ban/jail.d/z00-defaults.conf'
owner: 'root'
Expand All @@ -75,6 +78,7 @@

- name: 'Create Jails'
ansible.builtin.template:
backup: true
src: 'etc/fail2ban/jail.d/z10-{{ item["template"] }}.conf.j2'
dest: '/etc/fail2ban/jail.d/{{ item["filename"] }}.conf'
owner: 'root'
Expand Down
1 change: 1 addition & 0 deletions roles/fangfrisch/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

- name: 'Deploy /etc/fangfrisch.conf'
ansible.builtin.template:
backup: true
src: 'etc/fangfrisch.conf.j2'
dest: '/etc/fangfrisch.conf'
owner: 'clamupdate'
Expand Down
1 change: 1 addition & 0 deletions roles/github_project_createrepo/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@

- name: 'deploy /etc/github-project-createrepo.yml'
ansible.builtin.template:
backup: true
src: 'etc/github-project-createrepo.yml.j2'
dest: '/etc/github-project-createrepo.yml'
owner: 'root'
Expand Down
1 change: 1 addition & 0 deletions roles/gitlab_ce/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@

- name: 'Deploy /etc/gitlab/gitlab.rb'
ansible.builtin.template:
backup: true
src: 'etc/gitlab/gitlab.rb.j2'
dest: '/etc/gitlab/gitlab.rb'
owner: 'root'
Expand Down
1 change: 1 addition & 0 deletions roles/glpi_agent/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@

- name: 'Deploy /etc/glpi-agent/conf.d/z00-linuxfabrik.cfg'
ansible.builtin.template:
backup: true
src: 'etc/glpi-agent/conf.d/z00-linuxfabrik.cfg.j2'
dest: '/etc/glpi-agent/conf.d/z00-linuxfabrik.cfg'
owner: 'root'
Expand Down
4 changes: 4 additions & 0 deletions roles/grafana/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

- name: 'deploy /etc/grafana/grafana.ini'
ansible.builtin.template:
backup: true
src: 'etc/grafana/grafana.ini.j2'
dest: '/etc/grafana/grafana.ini'
owner: 'root'
Expand All @@ -44,6 +45,7 @@

- name: 'deploy /etc/grafana/ldap.toml'
ansible.builtin.template:
backup: true
src: 'etc/grafana/ldap.toml.j2'
dest: '/etc/grafana/ldap.toml'
owner: 'root'
Expand Down Expand Up @@ -82,6 +84,7 @@

- name: 'deploy the grafana datasource provisioning file'
ansible.builtin.template:
backup: true
src: 'etc/grafana/provisioning/datasources/linuxfabrik-monitoring-plugins.yml.j2'
dest: '/etc/grafana/provisioning/datasources/linuxfabrik-monitoring-plugins.yml'
owner: 'grafana'
Expand All @@ -99,6 +102,7 @@

- name: 'deploy the grafana dashboard provisioning file'
ansible.builtin.template:
backup: true
src: 'etc/grafana/provisioning/dashboards/linuxfabrik-monitoring-plugins.yml.j2'
dest: '/etc/grafana/provisioning/dashboards/linuxfabrik-monitoring-plugins.yml'
owner: 'grafana'
Expand Down
2 changes: 2 additions & 0 deletions roles/graylog_datanode/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

- name: 'Deploy /etc/graylog/datanode/datanode.conf (version: {{ graylog_datanode__installed_version[:3] }})'
ansible.builtin.template:
backup: true
src: 'etc/graylog/datanode/{{ graylog_datanode__installed_version[:3] }}-datanode.conf.j2'
dest: '/etc/graylog/datanode/datanode.conf'
owner: 'root'
Expand All @@ -38,6 +39,7 @@

- name: 'Deploy /etc/graylog/datanode/jvm.options'
ansible.builtin.template:
backup: true
src: 'etc/graylog/datanode/jvm.options.j2'
dest: '/etc/graylog/datanode/jvm.options'
owner: 'root'
Expand Down
Loading