Created
May 16, 2019 19:32
-
-
Save arnathan2k/5314f7c3666244fb2f40337a298bc74e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- | |
become: true | |
connection: local | |
gather_facts: false | |
hosts: localhost | |
tasks: | |
- | |
apt: | |
name: "{{ item }}" | |
state: present | |
name: "Install our packages" | |
with_items: "{{ packages }}" | |
- | |
name: "Confirm services are running" | |
service: | |
name: "{{ item }}" | |
state: running | |
with_items: "{{ services }}" | |
vars: | |
packages: | |
- apache2 | |
- mysql-server | |
- mysql-common | |
- mysql-client | |
services: | |
- apache2 | |
- mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment