Installer Tasks: Rename to Installer tasks

This commit is contained in:
Christer Warén 2024-05-03 15:27:44 +03:00
parent dda69bc6df
commit 183e92b998
3 changed files with 20 additions and 20 deletions

View File

@ -31,7 +31,7 @@ python3 -m venv /opt/ansible &> /dev/null
/opt/ansible/bin/ansible-galaxy collection install -r requirements.yml --upgrade &> /dev/null /opt/ansible/bin/ansible-galaxy collection install -r requirements.yml --upgrade &> /dev/null
/opt/ansible/bin/ansible-pull -U ssh://git@github.com/MatteZ02/mpp-ansible --private-key ~/.ssh/id_rsa tasks.yml -t install /opt/ansible/bin/ansible-pull -U ssh://git@github.com/MatteZ02/mpp-ansible --private-key ~/.ssh/id_rsa tasks.yml -t installer
echo " echo "

View File

@ -6,10 +6,10 @@
gather_timeout: 10 gather_timeout: 10
tasks: tasks:
- name: "Install" - name: "Installer"
import_tasks: tasks/install.yml import_tasks: tasks/installer.yml
tags: tags:
- install - installer
- never - never
- name: "Maintenance" - name: "Maintenance"

View File

@ -1,5 +1,5 @@
--- ---
- name: "Install - Ansible - Python Library" - name: "Installer - Ansible - Python Library"
pip: pip:
name: ansible name: ansible
state: latest state: latest
@ -9,7 +9,7 @@
tags: tags:
- ansible - ansible
- name: "Install - Ansible - Create Symbolic Links" - name: "Installer - Ansible - Create Symbolic Links"
ansible.builtin.file: ansible.builtin.file:
src: /opt/ansible/bin/{{ binary }} src: /opt/ansible/bin/{{ binary }}
dest: /usr/bin/{{ binary }} dest: /usr/bin/{{ binary }}
@ -35,7 +35,7 @@
tags: tags:
- ansible - ansible
- name: "Install - Ansible - Dependencies / Python Library : hvac" - name: "Installer - Ansible - Dependencies / Python Library : hvac"
pip: pip:
name: hvac name: hvac
state: latest state: latest
@ -45,7 +45,7 @@
tags: tags:
- ansible - ansible
- name: "Install - Ansible - Dependencies / Python Library : netaddr" - name: "Installer - Ansible - Dependencies / Python Library : netaddr"
pip: pip:
name: netaddr name: netaddr
state: latest state: latest
@ -55,7 +55,7 @@
tags: tags:
- ansible - ansible
- name: "Install - Ansible - Dependencies / Python Library : jmespath" - name: "Installer - Ansible - Dependencies / Python Library : jmespath"
pip: pip:
name: jmespath name: jmespath
state: latest state: latest
@ -65,7 +65,7 @@
tags: tags:
- ansible - ansible
- name: "Install - Ansible - Dependencies / Python Library : pexpect" - name: "Installer - Ansible - Dependencies / Python Library : pexpect"
pip: pip:
name: pexpect name: pexpect
state: latest state: latest
@ -75,14 +75,14 @@
tags: tags:
- ansible - ansible
- name: "Install - Podman" - name: "Installer - Podman"
apt: apt:
name: podman name: podman
state: latest state: latest
tags: tags:
- podman - podman
- name: "Install : Podman : Configure - Subordinate Ids : Users : root" - name: "Installer : Podman : Configure - Subordinate Ids : Users : root"
lineinfile: lineinfile:
path: /etc/subuid path: /etc/subuid
regexp: "^root" regexp: "^root"
@ -94,7 +94,7 @@
regexp: "^root" regexp: "^root"
line: "root:100000:65536" line: "root:100000:65536"
- name: "Install - Certbot - Python Library" - name: "Installer - Certbot - Python Library"
pip: pip:
name: certbot name: certbot
state: latest state: latest
@ -104,7 +104,7 @@
tags: tags:
- certbot - certbot
- name: "Install - Certbot - Create Symbolic Links" - name: "Installer - Certbot - Create Symbolic Links"
ansible.builtin.file: ansible.builtin.file:
src: /opt/ansible/bin/{{ binary }} src: /opt/ansible/bin/{{ binary }}
dest: /usr/bin/{{ binary }} dest: /usr/bin/{{ binary }}
@ -119,7 +119,7 @@
tags: tags:
- certbot - certbot
- name: "Install - Certbot - Auth Hook" - name: "Installer - Certbot - Auth Hook"
copy: copy:
src: "../files/certbot/nginx.sh" src: "../files/certbot/nginx.sh"
dest: "/etc/letsencrypt/renewal-hooks/pre/nginx.sh" dest: "/etc/letsencrypt/renewal-hooks/pre/nginx.sh"
@ -128,7 +128,7 @@
tags: tags:
- certbot - certbot
- name: "Install - Certbot - Create Certificates" - name: "Installer - Certbot - Create Certificates"
command: "certbot certonly --cert-name {{ cert.name }} --manual --preferred-challenges http-01 --email {{ cert.email }} --server https://acme-v02.api.letsencrypt.org/directory --agree-tos -n --manual-auth-hook /etc/letsencrypt/renewal-hooks/pre/nginx.sh --debug-challenges --preferred-chain='ISRG Root X1' --key-type rsa -d {{ cert.domains | join(' -d ') }}" command: "certbot certonly --cert-name {{ cert.name }} --manual --preferred-challenges http-01 --email {{ cert.email }} --server https://acme-v02.api.letsencrypt.org/directory --agree-tos -n --manual-auth-hook /etc/letsencrypt/renewal-hooks/pre/nginx.sh --debug-challenges --preferred-chain='ISRG Root X1' --key-type rsa -d {{ cert.domains | join(' -d ') }}"
register: task register: task
changed_when: task.stdout.find("Certificate not yet due for renewal; no action taken.") == -1 changed_when: task.stdout.find("Certificate not yet due for renewal; no action taken.") == -1
@ -141,7 +141,7 @@
tags: tags:
- certbot - certbot
- name: "Install - MariaDB - Dependencies / Python Library : pymysql" - name: "Installer - MariaDB - Dependencies / Python Library : pymysql"
pip: pip:
name: pymysql name: pymysql
state: latest state: latest
@ -151,7 +151,7 @@
tags: tags:
- mariadb - mariadb
- name: "Install - MariaDB - Dependencies / Package : mariadb-client" - name: "Installer - MariaDB - Dependencies / Package : mariadb-client"
apt: apt:
name: "mariadb-client" name: "mariadb-client"
state: latest state: latest
@ -160,7 +160,7 @@
tags: tags:
- mariadb - mariadb
- name: "Install - Schedule - Maintenance" - name: "Installer - Schedule - Maintenance"
cron: cron:
name: Maintenance name: Maintenance
hour: "*/3" hour: "*/3"
@ -169,7 +169,7 @@
tags: tags:
- cron - cron
- name: "Install - Schedule - Deployer" - name: "Installer - Schedule - Deployer"
cron: cron:
name: Deployer name: Deployer
minute: "*/5" minute: "*/5"