Project

General

Profile

Actions

Ansible cheat sheet » History » Revision 1

Revision 1/24 | Next »
Jon Goldberg, 11/06/2020 04:18 PM


{{last_updated_at}} by {{last_updated_by}}

Ansible cheat sheet

This page will cover some helpful one-line commands we can execute with Ansible to accomplish various tasks.

Roll back a site to the latest commit (e.g. after a failed merge):

ansible --become -m shell -a 'cd {{civiroot}} && git clean -fdx {{civiroot}} && get reset --hard HEAD'  mysite1.local,mysite2.local

Updated by Jon Goldberg over 3 years ago · 1 revisions