Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is not expected that a /home/root will be created for user root #5

Open
flybyray opened this issue Jan 18, 2022 · 0 comments
Open

Comments

@flybyray
Copy link

The example

---
- name: Converge
hosts: all
become: yes
gather_facts: yes
vars:
git_username: root
git_groupname: root
git_repository_destination: /root
git_repositories:
- repo: https://github.com/robertdebock/robertdebock.bootstrap
dest: bootstrap
- repo: https://github.com/robertdebock/robertdebock.bootstrap
dest: bootstrap-force
force: yes
- repo: https://github.com/robertdebock/robertdebock.bootstrap
dest: bootstrap-version
version: "2.11.1"
roles:
- role: robertdebock.git

is creating a directory for user root in /home/root.

See:

- name: create directory for git configuration
ansible.builtin.file:
path: /home/{{ git_username }}
state: directory
owner: "{{ git_username | default(omit) }}"
group: "{{ git_groupname | default(omit) }}"
mode: "0755"
when:
- getent_passwd is defined
- getent_passwd[git_username] != none

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant