Skip to content

Instantly share code, notes, and snippets.

@arnathan2k
Created May 16, 2019 19:31
Show Gist options
  • Save arnathan2k/5745ed69ffc2facb4834b23aa48b5866 to your computer and use it in GitHub Desktop.
Save arnathan2k/5745ed69ffc2facb4834b23aa48b5866 to your computer and use it in GitHub Desktop.
---
-
become: true
connection: local
gather_facts: false
hosts: localhost
tasks:
-
apt:
name: "{{ item }}"
state: present
update_cache: true
name: "Install our packages"
with_items:
- apache2
- mysql-server
- mysql-common
- mysql-client
-
name: "Confirm"
service:
name: "{{ item }}"
state: running
with_items:
- apache2
- mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment