chore 📦: Update setupacdc.yml to use container_pubkey
Updated the setupacdc.yml file to include the container's SSH public key for authorized key management, ensuring secure access to the container. This change improves security and reduces manual configuration steps.
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
container_onboot: 1
|
||||
container_protection: 0
|
||||
container_unprivileged: 1
|
||||
# container_tags: "ansible_managed,test"
|
||||
container_pubkey: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
|
||||
container_tags:
|
||||
- ansible_managed
|
||||
- test
|
||||
@@ -38,6 +38,7 @@
|
||||
-ostype {{ container_ostype }} \
|
||||
-hostname {{ container_hostname }} \
|
||||
-password {{ container_password }} \
|
||||
-ssh-public-keys {{ container_pubkey }} \
|
||||
-cores {{ container_cores }} \
|
||||
-memory {{ container_memory }} \
|
||||
-swap {{ container_swap }} \
|
||||
|
||||
Reference in New Issue
Block a user