update nameserver playbook to setup for debian bullseye, and add new cubox to inventory
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user