Initialize global credentials (user.name and user.email) for multiple users on development a machine
Git must be installed on the target system. Requires root user.
Variable | Description |
---|---|
users | Array of users |
Variable | Description |
---|---|
user | System user account |
name | Full name of user |
No role dependencies
- name: Init git on host
hosts: dev_machine
vars:
users:
-
user: "robert"
name: "Robert Example"
email: "robert@example.com"
-
user: "anna"
name: "Anna Example"
email: "anna@example.com"
roles:
- cyborg_x1.gitmcredinit
BSD
Christian Holl: cyborgx1 [the at] gmail [the dot] com