switched to new facts-syntax
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
- software-properties-common
|
||||
- lsb-release
|
||||
- ca-certificates
|
||||
when: ansible_distribution in ["Debian", "Ubuntu", "Linux Mint"]
|
||||
when: ansible_facts['distribution'] in ["Debian", "Ubuntu", "Linux Mint"]
|
||||
|
||||
- name: webservers | nextcloud | prereq | get php repo key
|
||||
ansible.builtin.uri:
|
||||
@@ -18,7 +18,7 @@
|
||||
ansible.builtin.lineinfile:
|
||||
path: "/etc/apt/sources.list.d/php.list"
|
||||
state: present
|
||||
line: "deb https://packages.sury.org/php/ {{ ansible_distribution_release | lower }} main"
|
||||
line: "deb https://packages.sury.org/php/ {{ ansible_facts['distribution']_release | lower }} main"
|
||||
create: True
|
||||
|
||||
- name: webservers | nextcloud | prereq | install php
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Load distro-specific variables
|
||||
- include_vars: "{{ ansible_distribution | lower }}.yml"
|
||||
- include_vars: "{{ ansible_facts['distribution'] | lower }}.yml"
|
||||
tags: always
|
||||
|
||||
- block:
|
||||
|
||||
Reference in New Issue
Block a user