Skip to content

Commit

Permalink
Add: ansible_user root in molecule
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMehraji committed Jan 26, 2025
1 parent 3882188 commit 471466e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ users_users:
# Example 2: User with a specified password
- name: bob
password: 'securepassword' # Replace 'securepassword' with the actual password
update_password: "on_create"

# Example 3: User with a specified shell and comment
- name: charlie
Expand Down
1 change: 1 addition & 0 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ platforms:
cgroupns_mode: host
privileged: true
pre_build_image: true
ansible_user: root
provisioner:
name: ansible
playbooks:
Expand Down

0 comments on commit 471466e

Please sign in to comment.