From 6d50983f84a3cb0b81fced98609af4f87434bf4f Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Sat, 14 Jun 2025 21:18:23 +0200 Subject: [PATCH] chore: rename some things --- README.md | 2 +- ansible.cfg | 2 +- .../initial_hosts.ini | 0 plays/nas.yml | 12 +++++------ plays/web.yml | 20 +++++++++---------- roles/base/tasks/main.yml | 2 +- 6 files changed, 19 insertions(+), 19 deletions(-) rename initial-hosts.ini => inventory/initial_hosts.ini (100%) diff --git a/README.md b/README.md index bd0ac85..14c1209 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,6 @@ Ansible configuration repository for my homelab. `static_ip` host var set to the desired static IP address 8. Comment out `ansible_ssh_user` in `group_vars/all/vars.yml`, as this overwrites the one set in the hosts file -9. Run `ansible-playbook -i initial-hosts.ini first_run.yml`. This command will +9. Run `ansible-playbook -i inventory/initial_hosts.ini first_run.yml`. This command will hang at the `restart networking` step; at this point you can Ctrl-C. diff --git a/ansible.cfg b/ansible.cfg index 387d99f..28cb5ff 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,4 +1,4 @@ [defaults] vault_password_file = .ansible-password -inventory = hosts.ini +inventory = inventory/local.ini roles_path = roles diff --git a/initial-hosts.ini b/inventory/initial_hosts.ini similarity index 100% rename from initial-hosts.ini rename to inventory/initial_hosts.ini diff --git a/plays/nas.yml b/plays/nas.yml index 549a52c..468ac7a 100644 --- a/plays/nas.yml +++ b/plays/nas.yml @@ -70,12 +70,12 @@ - restic-rest tags: restic-rest -- name: Install Lander - hosts: nas - become: yes - roles: - - lander - tags: lander +# - name: Install Lander +# hosts: nas +# become: yes +# roles: +# - lander +# tags: lander - hosts: nas become: yes diff --git a/plays/web.yml b/plays/web.yml index da6bc2c..878a01a 100644 --- a/plays/web.yml +++ b/plays/web.yml @@ -1,9 +1,9 @@ -- hosts: web - become: yes - roles: - - lander-web - tags: lander +# - hosts: web +# become: yes +# roles: +# - lander-web +# tags: lander - hosts: web become: yes @@ -83,8 +83,8 @@ - webdav-web tags: webdav -# - hosts: web -# become: yes -# roles: -# - otter-web -# tags: otter +- hosts: web + become: yes + roles: + - otter-web + tags: otter diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml index 8ec3e10..fd487b4 100644 --- a/roles/base/tasks/main.yml +++ b/roles/base/tasks/main.yml @@ -18,7 +18,7 @@ append: true create_home: yes shell: /bin/bash - password: "{{ vault_debian_pass | password_hash('sha512') }}" + password: "{{ debian_pass | password_hash('sha512') }}" update_password: on_create - name: Create SSH directory.