update comments, realign steps

This commit is contained in:
Von Random 2024-10-03 02:38:51 +03:00
parent 9fd6496f59
commit e5dc6ac404
2 changed files with 9 additions and 5 deletions

View file

@ -11,6 +11,8 @@
gpgkey: https://download.docker.com/linux/centos/gpg gpgkey: https://download.docker.com/linux/centos/gpg
gpgcheck: true gpgcheck: true
# while debian repo seems to work perfectly fine for ubuntu, there is a separate one
# to keep things simple we'll just use fact variables instead of checking and hard coding
- name: Set up repo for apt - name: Set up repo for apt
when: ansible_os_family == "Debian" when: ansible_os_family == "Debian"
block: block:

View file

@ -1,9 +1,5 @@
--- ---
- name: Install dependencies # this can accomodate for permissions if necessary, just use list of dicts
ansible.builtin.package:
name: python3-cryptography
state: present
- name: Create directories - name: Create directories
loop: loop:
- /containers/compose/iconserver - /containers/compose/iconserver
@ -13,6 +9,7 @@
state: directory state: directory
recurse: true recurse: true
# this too
- name: Install files from templates - name: Install files from templates
loop: loop:
- containers/compose/iconserver/compose.yml - containers/compose/iconserver/compose.yml
@ -24,6 +21,11 @@
# I would assume it does not matter how we get the self signed cert to the host # I would assume it does not matter how we get the self signed cert to the host
# so it's nicer (and safer) to generate one for each of the hosts. # so it's nicer (and safer) to generate one for each of the hosts.
# Another option is to pre-generate it and store it in ansible-vault. # Another option is to pre-generate it and store it in ansible-vault.
- name: Install dependencies
ansible.builtin.package:
name: python3-cryptography
state: present
- name: Create openssl key - name: Create openssl key
community.crypto.openssl_privatekey: community.crypto.openssl_privatekey:
path: /containers/data/nginx/conf.d/iconserver.key path: /containers/data/nginx/conf.d/iconserver.key