Migrate shell to FQCN.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# Ensure certbot renews certs on time.
|
||||
|
||||
- name: Server | Cron | Certbot | Find Executable
|
||||
shell: which certbot
|
||||
ansible.builtin.shell: which certbot
|
||||
register: certbot
|
||||
|
||||
- name: Server | Cron | Certbot | Monthly Renewal
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
## Pre-reqs ##
|
||||
|
||||
- name: Server | Grafana | Pre-Requirements | Install
|
||||
package:
|
||||
name:
|
||||
package:
|
||||
name:
|
||||
- apt-transport-https
|
||||
- software-properties-common
|
||||
- wget
|
||||
@@ -16,22 +16,22 @@
|
||||
## Install ##
|
||||
|
||||
- name: Server | Grafana | Install | Add Repo
|
||||
shell: '{{ item }}'
|
||||
ansible.builtin.shell: '{{ item }}'
|
||||
loop:
|
||||
- wget -q -O - https://packages.grafana.com/gpg.key | apt-key add -
|
||||
- echo "deb https://packages.grafana.com/oss/deb stable main" | tee /etc/apt/sources.list.d/grafana.list
|
||||
- apt update
|
||||
|
||||
- name: Server | Grafana | Install | Main
|
||||
package:
|
||||
name:
|
||||
package:
|
||||
name:
|
||||
- grafana
|
||||
state: present
|
||||
|
||||
## Configure ##
|
||||
|
||||
- name: Server | Grafana | Configure
|
||||
shell: '{{ item }}'
|
||||
ansible.builtin.shell: '{{ item }}'
|
||||
loop:
|
||||
- systemctl daemon-reload
|
||||
- systemctl enable grafana-server
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
# https://docs.influxdata.com/influxdb/v1.8/introduction/get-started/
|
||||
|
||||
- name: Server | InfluxDB1 | Check
|
||||
shell: which influxd
|
||||
ansible.builtin.shell: which influxd
|
||||
register: influxdb_check
|
||||
ignore_errors: true
|
||||
|
||||
- name: Server | InfluxDB1 | Install
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
args:
|
||||
chdir: "{{ ansible_env.HOME }}/Downloads/"
|
||||
loop:
|
||||
@@ -20,7 +20,7 @@
|
||||
when: influxdb_check.failed
|
||||
|
||||
- name: Server | InfluxDB1 | Config
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
loop:
|
||||
- influx -execute "create database main"
|
||||
- influx -execute "show databases"
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
# https://docs.influxdata.com/influxdb/v2.0/get-started/?t=Linux
|
||||
|
||||
- name: Server | InfluxDB2 | Check
|
||||
shell: which influxd
|
||||
ansible.builtin.shell: which influxd
|
||||
register: influxdb_check
|
||||
ignore_errors: true
|
||||
|
||||
- name: Server | InfluxDB2 | Install
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
args:
|
||||
chdir: "{{ ansible_env.HOME }}/Downloads/"
|
||||
loop:
|
||||
@@ -20,6 +20,6 @@
|
||||
when: influxdb_check.failed
|
||||
|
||||
- name: Server | InfluxDB2 | Config
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
loop:
|
||||
- influx setup -f -u {{ user }} -p initpassword -o Hyperling -b main -r 0
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
state: present
|
||||
|
||||
- name: Server | OnlyOffice | Postgres | Configure
|
||||
shell: '{{ item }}'
|
||||
ansible.builtin.shell: '{{ item }}'
|
||||
loop:
|
||||
- psql -c "CREATE DATABASE onlyoffice;"
|
||||
- psql -c "CREATE USER onlyoffice WITH password 'onlyoffice';"
|
||||
@@ -39,7 +39,7 @@
|
||||
# Actual Program #
|
||||
|
||||
- name: Server | OnlyOffice | Docs | Add Repo
|
||||
shell: '{{ item }}'
|
||||
ansible.builtin.shell: '{{ item }}'
|
||||
loop:
|
||||
- apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
|
||||
- echo "deb https://download.onlyoffice.com/repo/debian squeeze main" | tee /etc/apt/sources.list.d/onlyoffice.list
|
||||
@@ -60,22 +60,22 @@
|
||||
# Certs #
|
||||
|
||||
#- name: Server | OnlyOffice | HTTPS | Check For Cert
|
||||
# shell: "ls -l /etc/letsencrypt/live/{{ ansible_hostname }}.{{ domain }}/{fullchain,privkey}.pem"
|
||||
# ansible.builtin.shell: "ls -l /etc/letsencrypt/live/{{ ansible_hostname }}.{{ domain }}/{fullchain,privkey}.pem"
|
||||
# register: onlyoffice_cert
|
||||
# ignore_errors: true
|
||||
#
|
||||
#- name: Server | OnlyOffice | HTTPS | Create Cert
|
||||
# shell: "certbot --nginx -d {{ ansible_hostname }}.{{ domain }}"
|
||||
# ansible.builtin.shell: "certbot --nginx -d {{ ansible_hostname }}.{{ domain }}"
|
||||
# when: onlyoffice_cert.failed
|
||||
|
||||
# Config #
|
||||
|
||||
#- name: Server | OnlyOffice | HTTPS | Check For Config
|
||||
# shell: ls -l /etc/onlyoffice/documentserver/nginx/ds.conf
|
||||
# ansible.builtin.shell: ls -l /etc/onlyoffice/documentserver/nginx/ds.conf
|
||||
# register: onlyoffice_cert
|
||||
#
|
||||
#- name: Server | OnlyOffice | HTTPS | Create Config
|
||||
# shell: cp -f /etc/onlyoffice/documentserver/nginx/ds-ssl.conf.tmpl /etc/onlyoffice/documentserver/nginx/ds.conf
|
||||
# ansible.builtin.shell: cp -f /etc/onlyoffice/documentserver/nginx/ds-ssl.conf.tmpl /etc/onlyoffice/documentserver/nginx/ds.conf
|
||||
# when: onlyoffice_cert.failed
|
||||
#
|
||||
#- name: Server | OnlyOffice | HTTPS | Modify Config
|
||||
|
||||
Reference in New Issue
Block a user