remove tasks for deploy user

This commit is contained in:
Andreas Zweili 2021-08-17 22:33:30 +02:00
parent 71e72df057
commit 78d19e5199
2 changed files with 0 additions and 21 deletions

View File

@ -21,23 +21,6 @@
- name: "Lock root user"
command: "passwd -l root"
- name: "Add deploy user"
user:
name: "{{ deploy_user_name }}"
shell: "/bin/bash"
- name: "Add authorized keys for deploy user"
authorized_key:
user: "{{ deploy_user_name }}"
key: "{{ lookup('file', item) }}"
with_items: "{{ deploy_public_key }}"
- name: "Add deploy user to sudoers"
lineinfile: "dest=/etc/sudoers
regexp='{{ deploy_user_name }} ALL'
line='{{ deploy_user_name }} ALL=(ALL) NOPASSWD: ALL'
state=present"
- name: "Blacklist the floppy driver module"
kernel_blacklist:
name: "floppy"

View File

@ -1,8 +1,4 @@
---
deploy_user_name: ansible
deploy_public_key:
- keys/ansible.pub
apt_packages:
- apt-transport-https
- ntp