use other methods
This commit is contained in:
@@ -6,24 +6,22 @@
|
|||||||
- apt-transport-https
|
- apt-transport-https
|
||||||
- software-properties-common
|
- software-properties-common
|
||||||
- lsb-release
|
- lsb-release
|
||||||
- ca-certificates
|
|
||||||
when: ansible_facts['distribution'] in ["Debian", "Ubuntu", "Linux Mint"]
|
when: ansible_facts['distribution'] in ["Debian", "Ubuntu", "Linux Mint"]
|
||||||
|
|
||||||
- name: webservers | nextcloud | prereq | get php repo key
|
- name: webservers | nextcloud | prereq | get php repo key
|
||||||
ansible.builtin.uri:
|
ansible.builtin.get_url:
|
||||||
url: "https://packages.sury.org/php/apt.gpg"
|
url: "https://packages.sury.org/php/apt.gpg"
|
||||||
dest: "/etc/apt/trusted.gpg.d/php.gpg"
|
dest: "/usr/share/keyrings/php-sury.gpg"
|
||||||
|
mode: '0644'
|
||||||
|
|
||||||
- name: webservers | nextcloud | prereq | add php repo
|
- name: webservers | nextcloud | prereq | add php repo
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.apt_repository:
|
||||||
path: "/etc/apt/sources.list.d/php.list"
|
repo: "deb [signed-by=/usr/share/keyrings/php-sury.gpg] https://packages.sury.org/php/ {{ ansible_facts['distribution_release'] | lower }} main"
|
||||||
state: present
|
state: present
|
||||||
line: "deb https://packages.sury.org/php/ {{ ansible_facts['distribution_release'] | lower }} main"
|
filename: php-sury
|
||||||
create: True
|
update_cache: true
|
||||||
|
|
||||||
- name: webservers | nextcloud | prereq | install php
|
- name: webservers | nextcloud | prereq | install php
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
state: latest
|
state: latest
|
||||||
name: "{{ item.package }}"
|
name: "{{ nextcloud_php_packages | map(attribute='package') | list }}"
|
||||||
update_cache: True
|
|
||||||
with_items: "{{ nextcloud_php_packages }}"
|
|
||||||
Reference in New Issue
Block a user