update nameserver playbook to setup for debian bullseye, and add new cubox to inventory

This commit is contained in:
2022-08-21 08:59:43 -04:00
parent be6f184b81
commit 42c80b4894
4 changed files with 17 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
---
- name: bootstrap
hosts: cubox-m
hosts: managed
# remote_user: ansible
gather_facts: false
# become: true
@@ -94,10 +94,14 @@
- name: remove {{item}} user if it exists
command: userdel -rf {{item}}
become: true
become_user: ansible
args:
removes: /home/{{item}}/.bashrc
loop:
- debian
- ubuntu
- name: fix bullseye-security
ansible.builtin.replace:
path: /etc/apt/sources.list
regexp: '(\s+)bullseye\/updates(\s+.*)?$'
replace: '\1bullseye-security\/updates\2'