Last active
August 29, 2015 14:26
-
-
Save Juraci/e7852e1e1bda7c3ace08 to your computer and use it in GitHub Desktop.
Ansible Session
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
[defaults] | |
transport = ssh |
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
--- | |
- hosts: web | |
remote_user: vagrant | |
sudo: yes | |
tasks: | |
- name: Update the apt index | |
apt: update_cache=yes | |
- name: Install apache2 package | |
apt: name=apache2 state=latest | |
- name: Start apache service | |
service: name=apache2 state=started |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.define :web do |web_config| | |
web_config.vm.network :private_network, ip: "192.168.33.47" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment