generated from sebclem/ansible-role-template
Base
This commit is contained in:
parent
fd19ad41b6
commit
0ad07fa232
6
.vscode/extensions.json
vendored
6
.vscode/extensions.json
vendored
@ -1,7 +1,3 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"redhat.ansible",
|
||||
"dhoeric.ansible-vault",
|
||||
"esbenp.prettier-vscode"
|
||||
]
|
||||
"recommendations": ["redhat.ansible", "esbenp.prettier-vscode"]
|
||||
}
|
||||
|
@ -1,2 +1,6 @@
|
||||
---
|
||||
# defaults file for ${REPO_NAME_TITLE}
|
||||
|
||||
nginx_source_version: 1.21.6
|
||||
|
||||
vts_repot_url: https://github.com/vozlt/nginx-module-vts.git
|
||||
|
@ -1,2 +1,21 @@
|
||||
---
|
||||
# tasks file for Ansible-Nginx-Vts-Role
|
||||
|
||||
- name: Download NGINX
|
||||
get_url:
|
||||
url: "https://nginx.org/download/{{ nginx_source_version }}.tar.gz"
|
||||
dest: "/tmp/{{ nginx_source_version }}.tar.gz"
|
||||
mode: 0600
|
||||
register: nginx_source
|
||||
|
||||
- name: Unpack NGINX
|
||||
unarchive:
|
||||
copy: false
|
||||
dest: /tmp/
|
||||
src: "{{ nginx_source_version.dest }}"
|
||||
mode: 0755
|
||||
|
||||
- name: Get vts
|
||||
ansible.builtin.git:
|
||||
repo: "{{ vts_repot_url }}"
|
||||
dest: "/tmp/vts"
|
||||
|
Reference in New Issue
Block a user