This commit is contained in:
2026-08-02 09:48:36 -05:00
parent ed627fbd19
commit 316e6018fc
2 changed files with 16 additions and 7 deletions
+9 -1
View File
@@ -15,7 +15,7 @@
- name: Install bootstrap packages - name: Install bootstrap packages
become: true become: true
ansible.builtin.apt: ansible.builtin.apt:
state: latest state: present
pkg: pkg:
- bash - bash
- python3 - python3
@@ -150,6 +150,12 @@
loop: loop:
- files/ssh-keys/heath.pub - files/ssh-keys/heath.pub
- name: Lock the root user's password
become: true
ansible.builtin.user:
name: root
password_lock: true
#### User: first #### User: first
@@ -198,6 +204,7 @@
append: true append: true
create_home: true create_home: true
shell: /usr/bin/bash shell: /usr/bin/bash
password_lock: true
- name: Set hpf-ans's authorized_keys - name: Set hpf-ans's authorized_keys
become: true become: true
@@ -248,6 +255,7 @@
append: true append: true
create_home: true create_home: true
shell: /usr/bin/bash shell: /usr/bin/bash
password: '$y$j9T$.NJVASBkVLnvqgznpcpdx1$7poH23pou7VHti3IfvDzwECdLtTcMercYNCeevgV.xC'
- name: Set heath's authorized_keys - name: Set heath's authorized_keys
become: true become: true
+6 -5
View File
@@ -1,3 +1,9 @@
Manually on each system:
* set hostname to fqdn
* set ansible branch if not production
* run bootstrap.yml
* update first password
iris.heath.hpetersenfamily.com admin-a.hpetersenfamily.com core.mary.hpetersenfamily.com iris.heath.hpetersenfamily.com admin-a.hpetersenfamily.com core.mary.hpetersenfamily.com
heath heath
@@ -61,11 +67,6 @@ hpf-ans:
pkg: pkg:
- chrony - chrony
#- name: Set host name
# ansible.builtin.hostname:
# name: ## Fully qualified domain name ##
# use: systemd
* Configure chrony * Configure chrony
# cat >/etc/chrony/sources.d/hpetersenfamily-north-america.sources <<!!TheEnd!! # cat >/etc/chrony/sources.d/hpetersenfamily-north-america.sources <<!!TheEnd!!
pool 0.north-america.pool.ntp.org iburst pool 0.north-america.pool.ntp.org iburst