1
0
Fork 0

fix package install via playbook and username

This commit is contained in:
Von Random 2024-06-28 21:04:05 +03:00
parent 872ffab461
commit 085e1a5e85
2 changed files with 5 additions and 3 deletions

View file

@ -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:

View file

@ -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