diff --git a/lxc-php/tasks/php56.yml b/lxc-php/tasks/php56.yml index b299652e..d21683f2 100644 --- a/lxc-php/tasks/php56.yml +++ b/lxc-php/tasks/php56.yml @@ -1,11 +1,11 @@ --- -- name: "{{ lxc_php_version }} - Install PHP packages" +- name: "{{ lxc_php_container_name }} - Install PHP packages" community.general.lxc_container: - name: "{{ lxc_php_version }}" + name: "{{ lxc_php_container_name }}" container_command: "DEBIAN_FRONTEND=noninteractive apt install --yes --force-yes php5-fpm php5-cli php5-gd php5-imap php5-ldap php5-mcrypt php5-mysql php5-pgsql php5-sqlite php-gettext php5-intl php5-curl php5-ssh2 libphp-phpmailer" -- name: "{{ lxc_php_version }} - Copy evolinux PHP configuration" +- name: "{{ lxc_php_container_name }} - Copy evolinux PHP configuration" ansible.builtin.template: src: z-evolinux-defaults.ini.j2 dest: "{{ line_item }}" diff --git a/lxc-php/tasks/php70.yml b/lxc-php/tasks/php70.yml index 52c96883..ca7f8e82 100644 --- a/lxc-php/tasks/php70.yml +++ b/lxc-php/tasks/php70.yml @@ -1,11 +1,11 @@ --- -- name: "{{ lxc_php_version }} - Install PHP packages" +- name: "{{ lxc_php_container_name }} - Install PHP packages" community.general.lxc_container: - name: "{{ lxc_php_version }}" + name: "{{ lxc_php_container_name }}" container_command: "DEBIAN_FRONTEND=noninteractive apt install -y php-fpm php-cli php-gd php-intl php-imap php-ldap php-mcrypt php-mysql php-pgsql php-sqlite3 php-gettext php-curl php-ssh2 php-zip php-mbstring composer libphp-phpmailer" -- name: "{{ lxc_php_version }} - Copy evolinux PHP configuration" +- name: "{{ lxc_php_container_name }} - Copy evolinux PHP configuration" ansible.builtin.template: src: z-evolinux-defaults.ini.j2 dest: "{{ line_item }}" diff --git a/lxc-php/tasks/php74.yml b/lxc-php/tasks/php74.yml index f1dd021a..52751f12 100644 --- a/lxc-php/tasks/php74.yml +++ b/lxc-php/tasks/php74.yml @@ -1,17 +1,17 @@ --- -- name: "{{ lxc_php_version }} - Install PHP packages" +- name: "{{ lxc_php_container_name }} - Install PHP packages" community.general.lxc_container: - name: "{{ lxc_php_version }}" + name: "{{ lxc_php_container_name }}" container_command: "DEBIAN_FRONTEND=noninteractive apt install -y php-fpm php-cli php-gd php-intl php-imap php-ldap php-mysql php-pgsql php-sqlite3 php-curl php-zip php-mbstring php-xml php-zip composer libphp-phpmailer" -- name: "{{ lxc_php_version }} - fix bullseye repository" +- name: "{{ lxc_php_container_name }} - fix bullseye repository" ansible.builtin.replace: dest: "{{ lxc_rootfs }}/etc/apt/sources.list" regexp: 'bullseye/updates' replace: 'bullseye-security' -- name: "{{ lxc_php_version }} - Copy evolinux PHP configuration" +- name: "{{ lxc_php_container_name }} - Copy evolinux PHP configuration" ansible.builtin.template: src: z-evolinux-defaults.ini.j2 dest: "{{ line_item }}" diff --git a/lxc-php/tasks/php80.yml b/lxc-php/tasks/php80.yml index 66f51f6f..d023f6b8 100644 --- a/lxc-php/tasks/php80.yml +++ b/lxc-php/tasks/php80.yml @@ -5,18 +5,18 @@ lxc_apt_keyring_dir: /etc/apt/trusted.gpg.d -- name: "{{ lxc_php_version }} - Install dependency packages" +- name: "{{ lxc_php_container_name }} - Install dependency packages" community.general.lxc_container: - name: "{{ lxc_php_version }}" + name: "{{ lxc_php_container_name }}" container_command: "DEBIAN_FRONTEND=noninteractive apt install -y wget gnupg" -- name: "{{ lxc_php_version }} - fix bullseye repository" +- name: "{{ lxc_php_container_name }} - fix bullseye repository" ansible.builtin.replace: dest: "{{ lxc_rootfs }}/etc/apt/sources.list" regexp: 'bullseye/updates' replace: 'bullseye-security' -- name: "{{ lxc_php_version }} - Add sury repo" +- name: "{{ lxc_php_container_name }} - Add sury repo" ansible.builtin.lineinfile: dest: "{{ lxc_rootfs }}/etc/apt/sources.list.d/sury.list" line: "{{ item }}" @@ -51,17 +51,17 @@ owner: root group: root -- name: "{{ lxc_php_version }} - Update APT cache" +- name: "{{ lxc_php_container_name }} - Update APT cache" community.general.lxc_container: - name: "{{ lxc_php_version }}" + name: "{{ lxc_php_container_name }}" container_command: "DEBIAN_FRONTEND=noninteractive apt update" -- name: "{{ lxc_php_version }} - Install PHP packages" +- name: "{{ lxc_php_container_name }} - Install PHP packages" community.general.lxc_container: - name: "{{ lxc_php_version }}" + name: "{{ lxc_php_container_name }}" container_command: "DEBIAN_FRONTEND=noninteractive apt install -y php-fpm php-cli php-gd php-intl php-imap php-ldap php-mysql php-pgsql php-sqlite3 php-curl php-zip php-mbstring php-xml php-zip composer libphp-phpmailer" -- name: "{{ lxc_php_version }} - Copy evolinux PHP configuration" +- name: "{{ lxc_php_container_name }} - Copy evolinux PHP configuration" ansible.builtin.template: src: z-evolinux-defaults.ini.j2 dest: "{{ line_item }}" diff --git a/lxc-php/tasks/php81.yml b/lxc-php/tasks/php81.yml index 0b92c3de..5ea2a0f7 100644 --- a/lxc-php/tasks/php81.yml +++ b/lxc-php/tasks/php81.yml @@ -4,18 +4,18 @@ ansible.builtin.set_fact: lxc_apt_keyring_dir: /etc/apt/trusted.gpg.d -- name: "{{ lxc_php_version }} - Install dependency packages" +- name: "{{ lxc_php_container_name }} - Install dependency packages" community.general.lxc_container: - name: "{{ lxc_php_version }}" + name: "{{ lxc_php_container_name }}" container_command: "DEBIAN_FRONTEND=noninteractive apt install -y wget gnupg" -- name: "{{ lxc_php_version }} - fix bullseye repository" +- name: "{{ lxc_php_container_name }} - fix bullseye repository" ansible.builtin.replace: dest: "{{ lxc_rootfs }}/etc/apt/sources.list" regexp: 'bullseye/updates' replace: 'bullseye-security' -- name: "{{ lxc_php_version }} - Add sury repo" +- name: "{{ lxc_php_container_name }} - Add sury repo" ansible.builtin.lineinfile: dest: "{{ lxc_rootfs }}/etc/apt/sources.list.d/sury.list" line: "{{ item }}" @@ -50,17 +50,17 @@ owner: root group: root -- name: "{{ lxc_php_version }} - Update APT cache" +- name: "{{ lxc_php_container_name }} - Update APT cache" community.general.lxc_container: - name: "{{ lxc_php_version }}" + name: "{{ lxc_php_container_name }}" container_command: "DEBIAN_FRONTEND=noninteractive apt update" -- name: "{{ lxc_php_version }} - Install PHP packages" +- name: "{{ lxc_php_container_name }} - Install PHP packages" community.general.lxc_container: - name: "{{ lxc_php_version }}" + name: "{{ lxc_php_container_name }}" container_command: "DEBIAN_FRONTEND=noninteractive apt install -y php-fpm php-cli php-gd php-intl php-imap php-ldap php-mysql php-pgsql php-sqlite3 php-curl php-zip php-mbstring php-xml php-zip composer libphp-phpmailer" -- name: "{{ lxc_php_version }} - Copy evolinux PHP configuration" +- name: "{{ lxc_php_container_name }} - Copy evolinux PHP configuration" ansible.builtin.template: src: z-evolinux-defaults.ini.j2 dest: "{{ line_item }}" diff --git a/lxc-php/tasks/php82.yml b/lxc-php/tasks/php82.yml index ede18853..40d8b962 100644 --- a/lxc-php/tasks/php82.yml +++ b/lxc-php/tasks/php82.yml @@ -4,24 +4,24 @@ ansible.builtin.set_fact: lxc_apt_keyring_dir: /etc/apt/trusted.gpg.d -- name: "{{ lxc_php_version }} - Install dependency packages" +- name: "{{ lxc_php_container_name }} - Install dependency packages" community.general.lxc_container: - name: "{{ lxc_php_version }}" + name: "{{ lxc_php_container_name }}" container_command: "DEBIAN_FRONTEND=noninteractive apt install -y wget gnupg" -- name: "{{ lxc_php_version }} - delete sources.list bookworm repository" +- name: "{{ lxc_php_container_name }} - delete sources.list bookworm repository" ansible.builtin.file: path: "{{ lxc_rootfs }}/etc/apt/sources.list" state: absent -- name: "{{ lxc_php_version }} - system bookworm repository" +- name: "{{ lxc_php_container_name }} - system bookworm repository" ansible.builtin.template: src: bookworm_basics.sources.j2 dest: "{{ lxc_rootfs }}/etc/apt/sources.list.d/system.sources" force: true mode: "0644" -- name: "{{ lxc_php_version }} - security bookworm repository" +- name: "{{ lxc_php_container_name }} - security bookworm repository" ansible.builtin.template: src: bookworm_security.sources.j2 dest: "{{ lxc_rootfs }}/etc/apt/sources.list.d/security.sources" @@ -44,17 +44,17 @@ owner: root group: root -- name: "{{ lxc_php_version }} - Update APT cache" +- name: "{{ lxc_php_container_name }} - Update APT cache" community.general.lxc_container: - name: "{{ lxc_php_version }}" + name: "{{ lxc_php_container_name }}" container_command: "DEBIAN_FRONTEND=noninteractive apt update" -- name: "{{ lxc_php_version }} - Install PHP packages" +- name: "{{ lxc_php_container_name }} - Install PHP packages" community.general.lxc_container: - name: "{{ lxc_php_version }}" + name: "{{ lxc_php_container_name }}" container_command: "DEBIAN_FRONTEND=noninteractive apt install -y php-fpm php-cli php-gd php-intl php-imap php-ldap php-mysql php-pgsql php-sqlite3 php-curl php-zip php-mbstring php-xml php-zip composer libphp-phpmailer" -- name: "{{ lxc_php_version }} - Copy evolinux PHP configuration" +- name: "{{ lxc_php_container_name }} - Copy evolinux PHP configuration" ansible.builtin.template: src: z-evolinux-defaults.ini.j2 dest: "{{ line_item }}" diff --git a/lxc-php/tasks/php83.yml b/lxc-php/tasks/php83.yml index 80c33eb6..674ab925 100644 --- a/lxc-php/tasks/php83.yml +++ b/lxc-php/tasks/php83.yml @@ -4,38 +4,38 @@ ansible.builtin.set_fact: lxc_apt_keyring_dir: /etc/apt/trusted.gpg.d -- name: "{{ lxc_php_version }} - Install dependency packages" +- name: "{{ lxc_php_container_name }} - Install dependency packages" community.general.lxc_container: - name: "{{ lxc_php_version }}" + name: "{{ lxc_php_container_name }}" container_command: "DEBIAN_FRONTEND=noninteractive apt install -y wget gnupg" -- name: "{{ lxc_php_version }} - delete sources.list bookworm repository" +- name: "{{ lxc_php_container_name }} - delete sources.list bookworm repository" ansible.builtin.file: path: "{{ lxc_rootfs }}/etc/apt/sources.list" state: absent -- name: "{{ lxc_php_version }} - system bookworm repository" +- name: "{{ lxc_php_container_name }} - system bookworm repository" ansible.builtin.template: src: bookworm_basics.sources.j2 dest: "{{ lxc_rootfs }}/etc/apt/sources.list.d/system.sources" force: true mode: "0644" -- name: "{{ lxc_php_version }} - security bookworm repository" +- name: "{{ lxc_php_container_name }} - security bookworm repository" ansible.builtin.template: src: bookworm_security.sources.j2 dest: "{{ lxc_rootfs }}/etc/apt/sources.list.d/security.sources" force: true mode: "0644" -- name: "{{ lxc_php_version }} - Add sury repo" +- name: "{{ lxc_php_container_name }} - Add sury repo" ansible.builtin.template: src: sury.sources.j2 dest: "{{ lxc_rootfs }}/etc/apt/sources.list.d/sury.sources" force: true mode: "0644" -- name: "{{ lxc_php_version }} - Add sury failsafe repo" +- name: "{{ lxc_php_container_name }} - Add sury failsafe repo" ansible.builtin.template: src: evolix_sury.sources.j2 dest: "{{ lxc_rootfs }}/etc/apt/sources.list.d/evolix_sury.sources" @@ -66,17 +66,17 @@ owner: root group: root -- name: "{{ lxc_php_version }} - Update APT cache" +- name: "{{ lxc_php_container_name }} - Update APT cache" community.general.lxc_container: - name: "{{ lxc_php_version }}" + name: "{{ lxc_php_container_name }}" container_command: "DEBIAN_FRONTEND=noninteractive apt update" -- name: "{{ lxc_php_version }} - Install PHP packages" +- name: "{{ lxc_php_container_name }} - Install PHP packages" community.general.lxc_container: - name: "{{ lxc_php_version }}" + name: "{{ lxc_php_container_name }}" container_command: "DEBIAN_FRONTEND=noninteractive apt install -y php-fpm php-cli php-gd php-intl php-imap php-ldap php-mysql php-pgsql php-sqlite3 php-curl php-zip php-mbstring php-xml php-zip composer libphp-phpmailer" -- name: "{{ lxc_php_version }} - Copy evolinux PHP configuration" +- name: "{{ lxc_php_container_name }} - Copy evolinux PHP configuration" ansible.builtin.template: src: z-evolinux-defaults.ini.j2 dest: "{{ line_item }}"