Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
comanage-registry-training-ansible/roles/common/tasks/users.yml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
72 lines (63 sloc)
2.27 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Enable password authentication for SSH | |
lineinfile: | |
path: /etc/ssh/sshd_config | |
regexp: '^PasswordAuthentication' | |
line: PasswordAuthentication yes | |
notify: | |
- restart sshd | |
- name: Passwordless sudo | |
lineinfile: | |
dest: /etc/sudoers | |
state: present | |
regexp: '^%wheel' | |
line: '%wheel ALL=(ALL) NOPASSWD: ALL' | |
validate: 'visudo -cf %s' | |
- name: Trainers unix group | |
group: | |
name: trainers | |
gid: 1001 | |
- name: Scott Koranda | |
user: | |
name: skoranda | |
comment: Scott Koranda | |
uid: 1010 | |
home: /home/skoranda | |
password: "*" | |
shell: /bin/bash | |
group: trainers | |
append: yes | |
groups: wheel | |
- name: Scott Koranda authorized ssh key | |
authorized_key: | |
user: skoranda | |
key: "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAr9amUAycDrDj2f2kLkK6b5X5DYr+4kmRcYfjcOQG9capsUDh44E8C1KKKRtVZNCM4QAXjHHuIQhb7/YysH6XpjUypzHciDNyJ6f3H0Phrcu9X5HSXlPNuyHlq1rtxtuXnd/UPmrZlSuy1Kt4bjjk5EYI6XMXQjlZMet9mT8y0kB1NALGqfLm1LesjShEmKCqP97fj//jRakm661TDdphjKR7e/O6wB80BHZAUznd+4XqYoQ8wPMWFKk21ZtwNWEpgooPhwC956BmsGRXHzySct/LISNAwbQdNaxTKeWdLGvsD6uivBsbBe2egrkCB0UKzcyXTuQv3W4cElAzDFROEQ== skoranda@oregano.local" | |
- name: Paul Caskey | |
user: | |
name: pcaskey | |
comment: Paul Caskey | |
uid: 1011 | |
home: /home/pcaskey | |
password: "*" | |
shell: /bin/bash | |
group: trainers | |
append: yes | |
groups: wheel | |
- name: Paul Caskey authorized ssh key | |
authorized_key: | |
user: pcaskey | |
key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZ3+4TSLAruT/RLBHL9aGTDeP4I0XxuqICWj1Ag8H+JVdwrRtW7uGFiFrTbqqfCsBKFIgl64C3ioRixzA4RW8SxeGQj33xJAR+B9EdJg1neIaCwPAdm0snv7A0sRU/0PltHInd2Dcm6EzjIfzyMMPc+t78p9kgyisIKxOTKTjT+Ucty3HoxL2g4Vs3o3T61aM+k1mBGPYIoJxpRkNKho/VviTkJiooemKl4w5sXAzxY7FNpJ18Ir/iUo4hk1Z2766EDObaM1CECSXrEAfo0LA6LbV9ns4BJ1xq9HS4DWxJ6rp1YJcsmihX6nBjnvkM4h+ihjZgxi4iYVWxmAX7OjLV" | |
- name: Training unix group | |
group: | |
name: training | |
gid: 2000 | |
- name: Training user | |
user: | |
name: training | |
comment: COmanage Training User | |
uid: 2000 | |
home: /home/training | |
password: "$6$Vi9PQcxYJ.VBZ$RD.yWppXJUvqTBcicu4V1VTwcfpILQ6fisdXbl1VRwezpPr88p5ufW8fL4lmoVKgyGVgFIOQt1LL3Z0KlEOvK/" | |
shell: /bin/bash | |
group: training | |
append: yes | |