Skip to content
Snippets Groups Projects
Commit a7ef7a11 authored by Adrian K.'s avatar Adrian K.
Browse files

Fix ansible-lint

parent bf49faae
No related branches found
No related tags found
No related merge requests found
Pipeline #88824 failed
---
- name: restart nginx
service:
ansible.builtin.service:
name: nginx
state: restarted
......@@ -15,7 +15,7 @@ galaxy_info:
# - CC-BY-4.0
license: BSD-3-Clause
min_ansible_version: 2.9
min_ansible_version: "2.9"
# If this a Container Enabled role, provide the minimum Ansible Container version.
# min_ansible_container_version:
......@@ -29,8 +29,7 @@ galaxy_info:
platforms:
- name: Ubuntu
versions:
- 18.04
- 20.04
- all
galaxy_tags: []
# List tags for your role here, one per line. A tag is a keyword that describes
......
---
- name: Install dependencies.
apt:
ansible.builtin.apt:
name:
- gpg-agent
state: present
update-cache: yes
update-cache: true
when: ansible_distribution_release == 'focal'
- name: Add official nginx APT key
apt_key:
ansible.builtin.apt_key:
url: http://nginx.org/keys/nginx_signing.key
- name: Add official nginx repository
apt_repository:
ansible.builtin.apt_repository:
repo: "deb http://nginx.org/packages/mainline/ubuntu {{ ansible_distribution_release }} nginx"
- name: Install nginx
apt:
ansible.builtin.apt:
name: nginx
state: present
- name: Remove default page
file:
ansible.builtin.file:
path: /etc/nginx/conf.d/default.conf
state: absent
notify: restart nginx
- name: Copy nginx config
copy:
ansible.builtin.copy:
src: "{{ item }}"
dest: /etc/nginx/
mode: 0644
with_fileglob: files/*
notify: restart nginx
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment