Ansible cheat sheet » History » Version 1
Jon Goldberg, 11/06/2020 04:18 PM
1 | 1 | Jon Goldberg | {{last_updated_at}} by {{last_updated_by}} |
---|---|---|---|
2 | |||
3 | # Ansible cheat sheet |
||
4 | |||
5 | This page will cover some helpful one-line commands we can execute with Ansible to accomplish various tasks. |
||
6 | |||
7 | Roll back a site to the latest commit (e.g. after a failed merge): |
||
8 | ```shell |
||
9 | ansible --become -m shell -a 'cd {{civiroot}} && git clean -fdx {{civiroot}} && get reset --hard HEAD' mysite1.local,mysite2.local |
||
10 | ``` |