Skip to content

Instantly share code, notes, and snippets.

@AnoopAlias
Created June 29, 2020 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnoopAlias/798413ed7797a546edd85e295889be7c to your computer and use it in GitHub Desktop.
Save AnoopAlias/798413ed7797a546edd85e295889be7c to your computer and use it in GitHub Desktop.
ansible -i /opt/nDeploy/conf/nDeploy-cluster/hosts ndeployslaves -m shell -a "yum -y --enablerepo=ndeploy upgrade"
yum -y --enablerepo=ndeploy upgrade
/opt/nDeploy/scripts/attempt_autofix.sh
systemctl restart nginx
ansible -i /opt/nDeploy/conf/nDeploy-cluster/hosts ndeployslaves -m shell -a "systemctl restart nginx"
cd /opt/nDeploy/conf/nDeploy-cluster/
ansible-playbook -i ./hosts cluster.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment