generated from the-liberated-edge/wikijs
# Issue This PR implements the following [issue](the-liberated-edge/test-linux-containers#1). # Acceptance criteria - [x] A playbook for launching LXD Debian container with parameterized container name and OS version has been implemented. - [x] The newly launched Linux containers can be connected to and administered via SSH. - [x] The playbook has been part of an Ansible collection named theliberatededge.test_linux_containers. - [x] Setup and getting started technical documentation has been added to README.md. Co-authored-by: emo <esimeonov@gmail.com> Reviewed-on: #2
9 lines
239 B
YAML
9 lines
239 B
YAML
---
|
|
- name: change root user password in container
|
|
ansible.builtin.shell:
|
|
cmd: |-
|
|
lxc exec {{ lte_container_name }} -- \
|
|
bash -c \
|
|
'echo "root:{{ lte_container_root_pwd }}" | chpasswd'
|
|
changed_when: false
|