* Explicitly define `mode` in relevant tasks. * Explicitly define the `nginx` `apt_repository` filename in Debian based distros. * Building OpenSSL from source should now work properly in CentOS 8.
25 lines
822 B
YAML
25 lines
822 B
YAML
---
|
|
- name: "(Setup: All OSs) Configure NGINX Amplify Agent Repository"
|
|
include_tasks: "{{ role_path }}/tasks/amplify/setup-{{ ansible_os_family | lower }}.yml"
|
|
when: ansible_os_family == "Debian"
|
|
or ansible_os_family == "Redhat"
|
|
|
|
- name: "(Install: All OSs) Install NGINX Amplify Agent"
|
|
package:
|
|
name: nginx-amplify-agent
|
|
state: present
|
|
|
|
- name: "(Setup: All OSs) Copy NGINX Configurator Agent Configuration Template"
|
|
copy:
|
|
remote_src: yes
|
|
src: /etc/amplify-agent/agent.conf.default
|
|
dest: /etc/amplify-agent/agent.conf
|
|
mode: 0644
|
|
|
|
- name: "(Setup: All OSs) Configure NGINX Amplify Agent API Key"
|
|
lineinfile:
|
|
dest: /etc/amplify-agent/agent.conf
|
|
regexp: api_key =.*
|
|
line: "api_key = {{ nginx_amplify_api_key }}"
|
|
notify: "(Handler: All OSs) Start NGINX Amplify Agent"
|