fix package install via playbook and username
This commit is contained in:
parent
872ffab461
commit
085e1a5e85
2 changed files with 5 additions and 3 deletions
|
@ -5,8 +5,10 @@
|
|||
ansible_python_interpreter: /usr/bin/python3
|
||||
tasks:
|
||||
- name: install nginx
|
||||
ansible.builtin.package:
|
||||
ansible.builtin.apt:
|
||||
name: nginx
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: copy config
|
||||
ansible.builtin.template:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#cloud-config
|
||||
users:
|
||||
- name: von
|
||||
- name: andrei
|
||||
shell: /bin/bash
|
||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||
ssh-authorized-keys:
|
||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEt0hgwAMTEZNNQXn91s2dEj1R+jRR16qYQNZxZiAzD/ von@debian
|
||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEt0hgwAMTEZNNQXn91s2dEj1R+jRR16qYQNZxZiAzD/ andrei@debian
|
||||
|
|
Loading…
Reference in a new issue