https://github.com/martinm82/ansible-template
An Ansible template using all kind of features
https://github.com/martinm82/ansible-template
ansible ansible-galaxy ansible-inventory ansible-playbook ansible-roles
Last synced: 3 months ago
JSON representation
An Ansible template using all kind of features
- Host: GitHub
- URL: https://github.com/martinm82/ansible-template
- Owner: martinm82
- License: mit
- Created: 2018-02-25T21:12:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-25T21:23:23.000Z (over 8 years ago)
- Last Synced: 2025-03-05T02:45:53.162Z (over 1 year ago)
- Topics: ansible, ansible-galaxy, ansible-inventory, ansible-playbook, ansible-roles
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-template
An Ansible template showing all kind of Ansible features. This project is meant to be a reference
of all things I learned in Ansible and to use as well in upcoming Ansible projects.
## SSH user
* Create a SSH key-pair
```bash
$ ssh-keygen
```
* Store the private key in the *ssh_keys* folder with 0600 permissions
* Store the public key on remote in ~/.ssh/authorized_keys
```bash
$ cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys
```
* Add remote user to sudoers
```bash
$ echo "ansible ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/ansible
```