https://github.com/jonfairbanks/ansible
Ansible Playbooks
https://github.com/jonfairbanks/ansible
ansible ansible-playbook
Last synced: about 1 month ago
JSON representation
Ansible Playbooks
- Host: GitHub
- URL: https://github.com/jonfairbanks/ansible
- Owner: jonfairbanks
- License: mit
- Created: 2019-09-04T18:07:28.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-06T03:43:50.000Z (about 5 years ago)
- Last Synced: 2025-01-11T02:12:39.504Z (9 months ago)
- Topics: ansible, ansible-playbook
- Size: 32.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Playbooks
Setup host groups:
```
(sudo) vi /etc/ansible/hosts
```Run a playbook:
```
ansible-playbook /ansible/stress-test.yaml -K
```Run a command ad-hoc
```
ansible all -m shell -a 'echo $TERM'
```Install an app as a particular user:
```
ansible all -m apt -a "name=apache2-utils state=present" -u $USER --become -K
```