Drop duplicate when keys introduced in fafff25c20
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
This commit is contained in:
parent
b02400fd84
commit
d4f58b9395
|
@ -160,8 +160,9 @@
|
||||||
dest: '/home/{{ user.name }}/.profile'
|
dest: '/home/{{ user.name }}/.profile'
|
||||||
insertafter: EOF
|
insertafter: EOF
|
||||||
line: 'trap "sudo /usr/share/scripts/evomaintenance.sh" 0'
|
line: 'trap "sudo /usr/share/scripts/evomaintenance.sh" 0'
|
||||||
when: grep_profile_evomaintenance.rc != 0
|
when:
|
||||||
when: not ansible_check_mode
|
- grep_profile_evomaintenance.rc != 0
|
||||||
|
- not ansible_check_mode
|
||||||
|
|
||||||
# SSH keys
|
# SSH keys
|
||||||
|
|
||||||
|
|
|
@ -13,23 +13,26 @@
|
||||||
template: debian
|
template: debian
|
||||||
state: stopped
|
state: stopped
|
||||||
template_options: "--arch amd64 --release {{ release }}"
|
template_options: "--arch amd64 --release {{ release }}"
|
||||||
when: container_exists.stdout_lines | length == 0
|
when:
|
||||||
when: not ansible_check_mode
|
- container_exists.stdout_lines | length == 0
|
||||||
|
- not ansible_check_mode
|
||||||
|
|
||||||
- name: "Disable network configuration inside container {{ name }}"
|
- name: "Disable network configuration inside container {{ name }}"
|
||||||
replace:
|
replace:
|
||||||
name: "/var/lib/lxc/{{ name }}/rootfs/etc/default/networking"
|
name: "/var/lib/lxc/{{ name }}/rootfs/etc/default/networking"
|
||||||
regexp: "^#CONFIGURE_INTERFACES=yes"
|
regexp: "^#CONFIGURE_INTERFACES=yes"
|
||||||
replace: CONFIGURE_INTERFACES=no
|
replace: CONFIGURE_INTERFACES=no
|
||||||
when: lxc_network_type == "none"
|
when:
|
||||||
when: not ansible_check_mode
|
- lxc_network_type == "none"
|
||||||
|
- not ansible_check_mode
|
||||||
|
|
||||||
- name: "Disable interface shut down on halt inside container {{ name }} (Jessie container)"
|
- name: "Disable interface shut down on halt inside container {{ name }} (Jessie container)"
|
||||||
lineinfile:
|
lineinfile:
|
||||||
name: "/var/lib/lxc/{{ name }}/rootfs/etc/default/halt"
|
name: "/var/lib/lxc/{{ name }}/rootfs/etc/default/halt"
|
||||||
line: "NETDOWN=no"
|
line: "NETDOWN=no"
|
||||||
when: lxc_network_type == "none" and release == "jessie"
|
when:
|
||||||
when: not ansible_check_mode
|
- lxc_network_type == "none" and release == "jessie"
|
||||||
|
- not ansible_check_mode
|
||||||
|
|
||||||
- name: "Make the container {{ name }} poweroff on SIGPWR sent by lxc-stop (Jessie container)"
|
- name: "Make the container {{ name }} poweroff on SIGPWR sent by lxc-stop (Jessie container)"
|
||||||
file:
|
file:
|
||||||
|
@ -55,8 +58,9 @@
|
||||||
name: "/var/lib/lxc/{{ name }}/rootfs/etc/rc.local"
|
name: "/var/lib/lxc/{{ name }}/rootfs/etc/rc.local"
|
||||||
line: "chmod 755 /dev"
|
line: "chmod 755 /dev"
|
||||||
insertbefore: "^exit 0$"
|
insertbefore: "^exit 0$"
|
||||||
when: release == 'jessie'
|
when:
|
||||||
when: not ansible_check_mode
|
- release == 'jessie'
|
||||||
|
- not ansible_check_mode
|
||||||
|
|
||||||
- name: "Ensure that {{ name }} container is running"
|
- name: "Ensure that {{ name }} container is running"
|
||||||
lxc_container:
|
lxc_container:
|
||||||
|
|
|
@ -32,8 +32,9 @@
|
||||||
removes: /var/lib/munin/localdomain
|
removes: /var/lib/munin/localdomain
|
||||||
notify: restart munin-node
|
notify: restart munin-node
|
||||||
|
|
||||||
when: not ansible_hostname == "localdomain"
|
when:
|
||||||
when: not ansible_check_mode
|
- not ansible_hostname == "localdomain"
|
||||||
|
- not ansible_check_mode
|
||||||
tags:
|
tags:
|
||||||
- munin
|
- munin
|
||||||
|
|
||||||
|
|
|
@ -155,8 +155,9 @@
|
||||||
src: "{{ _mysql_scripts_dir }}/mysql-optimize.sh"
|
src: "{{ _mysql_scripts_dir }}/mysql-optimize.sh"
|
||||||
dest: /etc/cron.{{ mysql_cron_optimize_frequency | mandatory }}/mysql-optimize.sh
|
dest: /etc/cron.{{ mysql_cron_optimize_frequency | mandatory }}/mysql-optimize.sh
|
||||||
state: link
|
state: link
|
||||||
when: mysql_cron_optimize | bool
|
when:
|
||||||
when: not ansible_check_mode
|
- mysql_cron_optimize | bool
|
||||||
|
- not ansible_check_mode
|
||||||
tags:
|
tags:
|
||||||
- mysql
|
- mysql
|
||||||
|
|
||||||
|
|
|
@ -36,5 +36,6 @@
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
loop:
|
loop:
|
||||||
- { option: "date.timezone", value: "Europe/Paris" }
|
- { option: "date.timezone", value: "Europe/Paris" }
|
||||||
when: php_symfony_requirements | bool
|
when:
|
||||||
when: not ansible_check_mode
|
- php_symfony_requirements | bool
|
||||||
|
- not ansible_check_mode
|
||||||
|
|
|
@ -95,8 +95,9 @@
|
||||||
file:
|
file:
|
||||||
dest: /etc/php/{{ php_version }}/fpm
|
dest: /etc/php/{{ php_version }}/fpm
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
when: php_fpm_enable
|
when:
|
||||||
when: not ansible_check_mode
|
- php_fpm_enable
|
||||||
|
- not ansible_check_mode
|
||||||
|
|
||||||
- include: config_apache.yml
|
- include: config_apache.yml
|
||||||
when: php_apache_enable
|
when: php_apache_enable
|
||||||
|
@ -105,8 +106,9 @@
|
||||||
file:
|
file:
|
||||||
dest: /etc/php/{{ php_version }}/apache2
|
dest: /etc/php/{{ php_version }}/apache2
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
when: php_apache_enable
|
when:
|
||||||
when: not ansible_check_mode
|
- php_apache_enable
|
||||||
|
- not ansible_check_mode
|
||||||
|
|
||||||
- include: sury_post.yml
|
- include: sury_post.yml
|
||||||
when: php_sury_enable
|
when: php_sury_enable
|
||||||
|
|
|
@ -84,8 +84,9 @@
|
||||||
file:
|
file:
|
||||||
dest: /etc/php/7.3/fpm
|
dest: /etc/php/7.3/fpm
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
when: php_fpm_enable | bool
|
when:
|
||||||
when: not ansible_check_mode
|
- php_fpm_enable | bool
|
||||||
|
- not ansible_check_mode
|
||||||
|
|
||||||
- include: config_apache.yml
|
- include: config_apache.yml
|
||||||
when: php_apache_enable | bool
|
when: php_apache_enable | bool
|
||||||
|
@ -94,8 +95,9 @@
|
||||||
file:
|
file:
|
||||||
dest: /etc/php/7.3/apache2
|
dest: /etc/php/7.3/apache2
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
when: php_apache_enable | bool
|
when:
|
||||||
when: not ansible_check_mode
|
- php_apache_enable | bool
|
||||||
|
- not ansible_check_mode
|
||||||
|
|
||||||
- include: sury_post.yml
|
- include: sury_post.yml
|
||||||
when: php_sury_enable | bool
|
when: php_sury_enable | bool
|
||||||
|
|
|
@ -73,8 +73,9 @@
|
||||||
file:
|
file:
|
||||||
dest: /etc/php5/fpm
|
dest: /etc/php5/fpm
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
when: php_fpm_enable | bool
|
when:
|
||||||
when: not ansible_check_mode
|
- php_fpm_enable | bool
|
||||||
|
- not ansible_check_mode
|
||||||
|
|
||||||
- include: config_apache.yml
|
- include: config_apache.yml
|
||||||
when: php_apache_enable | bool
|
when: php_apache_enable | bool
|
||||||
|
@ -83,5 +84,6 @@
|
||||||
file:
|
file:
|
||||||
dest: /etc/php5/apache2
|
dest: /etc/php5/apache2
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
when: php_apache_enable | bool
|
when:
|
||||||
when: not ansible_check_mode
|
- php_apache_enable | bool
|
||||||
|
- not ansible_check_mode
|
||||||
|
|
|
@ -85,8 +85,9 @@
|
||||||
file:
|
file:
|
||||||
dest: /etc/php/7.0/fpm
|
dest: /etc/php/7.0/fpm
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
when: php_fpm_enable | bool
|
when:
|
||||||
when: not ansible_check_mode
|
- php_fpm_enable | bool
|
||||||
|
- not ansible_check_mode
|
||||||
|
|
||||||
- include: config_apache.yml
|
- include: config_apache.yml
|
||||||
when: php_apache_enable | bool
|
when: php_apache_enable | bool
|
||||||
|
@ -95,8 +96,9 @@
|
||||||
file:
|
file:
|
||||||
dest: /etc/php/7.0/apache2
|
dest: /etc/php/7.0/apache2
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
when: php_apache_enable | bool
|
when:
|
||||||
when: not ansible_check_mode
|
- php_apache_enable | bool
|
||||||
|
- not ansible_check_mode
|
||||||
|
|
||||||
- include: sury_post.yml
|
- include: sury_post.yml
|
||||||
when: php_sury_enable | bool
|
when: php_sury_enable | bool
|
||||||
|
|
|
@ -31,8 +31,9 @@
|
||||||
file:
|
file:
|
||||||
dest: /etc/php/7.4/apache2
|
dest: /etc/php/7.4/apache2
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
when: php_apache_enable | bool
|
when:
|
||||||
when: not ansible_check_mode
|
- php_apache_enable | bool
|
||||||
|
- not ansible_check_mode
|
||||||
|
|
||||||
- name: Symlink Evolix FPM config files from 7.4 to 7.0
|
- name: Symlink Evolix FPM config files from 7.4 to 7.0
|
||||||
file:
|
file:
|
||||||
|
@ -51,5 +52,6 @@
|
||||||
file:
|
file:
|
||||||
dest: /etc/php/7.4/fpm
|
dest: /etc/php/7.4/fpm
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
when: php_fpm_enable | bool
|
when:
|
||||||
when: not ansible_check_mode
|
- php_fpm_enable | bool
|
||||||
|
- not ansible_check_mode
|
||||||
|
|
Loading…
Reference in a new issue