Skip to content

Instantly share code, notes, and snippets.

View andrekutianski's full-sized avatar
🇺🇦
StandWithUkraine

Andre Kutianski andrekutianski

🇺🇦
StandWithUkraine
View GitHub Profile
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php

Keybase proof

I hereby claim:

  • I am andrebellafronte on github.
  • I am bellafronte (https://keybase.io/bellafronte) on keybase.
  • I have a public key whose fingerprint is B72C 7362 0271 6BAB A636 7AC3 1A02 A3B7 CA30 0F87

To claim this, I am signing this object:

- command: /usr/bin/create-database.sh
- command: /usr/bin/create-database.sh create = /caminho/da/database
TASK [setup] ********************************************** *********************
Ok: [servername]
$ ansible localhost -m setup
localhost | SUCCESS => {
"ansible_facts": {
"ansible_all_ipv4_addresses": [
"10.0.0.100",
"192.168.100.100"
],
(MANY more facts)
}
$ ansible-playbook install-jenkins.yml --list-tasks
# Installing all packages with one task (faster)
- name: install required packages using the apt module
apt: package={{ item }} update_cache=yes
sudo: True
with_items:
- git
- memcached
- nginx
- hosts: all
gather_facts: yes
remote_user: craun
serial: "25%"
sudo: yes
tasks:
- name: Update OpenSSL and OpenSSH (Debian)
apt: name={{ item }}
state=latest
ansible -i inventories/servers all -m service -a "name=salt-minion state=restarted"