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
|
ansible_python_interpreter: /usr/bin/python3
|
||||||
tasks:
|
tasks:
|
||||||
- name: install nginx
|
- name: install nginx
|
||||||
ansible.builtin.package:
|
ansible.builtin.apt:
|
||||||
name: nginx
|
name: nginx
|
||||||
|
state: present
|
||||||
|
update_cache: true
|
||||||
|
|
||||||
- name: copy config
|
- name: copy config
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#cloud-config
|
#cloud-config
|
||||||
users:
|
users:
|
||||||
- name: von
|
- name: andrei
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||||
ssh-authorized-keys:
|
ssh-authorized-keys:
|
||||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEt0hgwAMTEZNNQXn91s2dEj1R+jRR16qYQNZxZiAzD/ von@debian
|
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEt0hgwAMTEZNNQXn91s2dEj1R+jRR16qYQNZxZiAzD/ andrei@debian
|
||||||
|
|
Loading…
Reference in a new issue