diff --git a/Vagrantfile b/Vagrantfile index 26dfc68..bc45427 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -18,8 +18,8 @@ Vagrant.configure("2") do |config| config.vm.provision "ansible" do |ansible| ansible.compatibility_mode = "2.0" - ansible.playbook = "ansible/provision.yml" - ansible.inventory_path = "ansible/hosts.yml" + ansible.playbook = "tools/ansible/provision.yml" + ansible.inventory_path = "tools/ansible/hosts.yml" ansible.become = true ansible.ask_vault_pass = true end diff --git a/ansible.cfg b/ansible.cfg index 23f3818..370ab6c 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,5 +1,5 @@ [defaults] -inventory = ./ansible/hosts.yml +inventory = ./tools/ansible/hosts.yml nocows = True private_key_file = .vagrant/machines/dransible/virtualbox/private_key remote_user = vagrant diff --git a/ansible/vars/vault.yml b/ansible/vars/vault.yml deleted file mode 100644 index ee65701..0000000 --- a/ansible/vars/vault.yml +++ /dev/null @@ -1,10 +0,0 @@ -$ANSIBLE_VAULT;1.1;AES256 -36623031633937333366366139373538383730336439393237613762653632353766396437343461 -3637316538346432646532643066363361366262383037310a376330623637373335333236343536 -37316466613531363830333734323933666431643131326331393030343937353661623234356432 -3437376566623863620a313966333234363166326438373731313433633430623035393763376434 -37383934626562653534363634373132386239343465303535396666373563333566336663336538 -35323536396433376236383963626534636266343031363035666431393433323832343965316264 -65613734383066366565613433376565623239363462383664663063366230613330333032306434 -36663163353431343335653933616236363836363634333430393237363737313432346136623464 -37323165363361333133393238353638353332613136353031313630663834326439 diff --git a/docs/installation.md b/docs/installation.md index 56f19fa..5f14489 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -1,6 +1,6 @@ # Installation -1. Run `vagrant up` or `vagrant up --provision` if needed, to start Vagrant and provision the virtual machine using the `ansible/provision.yml` playbook. This will set up a LAMP stack with Apache, MySQL, PHP and Composer. +1. Run `vagrant up` or `vagrant up --provision` if needed, to start Vagrant and provision the virtual machine using the `tools/ansible/provision.yml` playbook. This will set up a LAMP stack with Apache, MySQL, PHP and Composer. If you try loading the site at this point you will see a `The requested URL was not found on this server` message as the site has not yet been deployed. @@ -9,7 +9,7 @@ 1. Run the deploy playbook to deploy the application code to the virtual machine. You will be prompted for the Vault password, which is `dransible`. ``` - ansible-playbook ansible/deploy.yml -i ansible/hosts.yml --ask-vault-pass + ansible-playbook tools/ansible/deploy.yml -i tools/ansible/hosts.yml --ask-vault-pass ``` 1. Load `http://dransible` in a browser, and you should see a Drupal 8 website. diff --git a/ansible/deploy.yml b/tools/ansible/deploy.yml similarity index 93% rename from ansible/deploy.yml rename to tools/ansible/deploy.yml index 1b41821..ee98c09 100644 --- a/ansible/deploy.yml +++ b/tools/ansible/deploy.yml @@ -15,7 +15,7 @@ release_drush_path: "{{ ansistrano_release_path.stdout }}/vendor/bin/drush" ansistrano_deploy_via: "rsync" - ansistrano_deploy_from: "{{ playbook_dir }}/../" + ansistrano_deploy_from: "{{ playbook_dir }}/../../" ansistrano_deploy_to: "{{ project_deploy_dir }}" ansistrano_keep_releases: 5 ansistrano_after_symlink_shared_tasks_file: "{{ playbook_dir }}/deploy/after-symlink-shared.yml" diff --git a/ansible/deploy/after-symlink-shared.yml b/tools/ansible/deploy/after-symlink-shared.yml similarity index 100% rename from ansible/deploy/after-symlink-shared.yml rename to tools/ansible/deploy/after-symlink-shared.yml diff --git a/ansible/deploy/after-symlink.yml b/tools/ansible/deploy/after-symlink.yml similarity index 100% rename from ansible/deploy/after-symlink.yml rename to tools/ansible/deploy/after-symlink.yml diff --git a/ansible/deploy/after-update-code.yml b/tools/ansible/deploy/after-update-code.yml similarity index 100% rename from ansible/deploy/after-update-code.yml rename to tools/ansible/deploy/after-update-code.yml diff --git a/ansible/hosts.yml b/tools/ansible/hosts.yml similarity index 100% rename from ansible/hosts.yml rename to tools/ansible/hosts.yml diff --git a/ansible/provision.yml b/tools/ansible/provision.yml similarity index 100% rename from ansible/provision.yml rename to tools/ansible/provision.yml diff --git a/ansible/requirements.yml b/tools/ansible/requirements.yml similarity index 100% rename from ansible/requirements.yml rename to tools/ansible/requirements.yml diff --git a/ansible/rollback.yml b/tools/ansible/rollback.yml similarity index 100% rename from ansible/rollback.yml rename to tools/ansible/rollback.yml diff --git a/ansible/vars/vars.yml b/tools/ansible/vars/vars.yml similarity index 100% rename from ansible/vars/vars.yml rename to tools/ansible/vars/vars.yml diff --git a/tools/ansible/vars/vault.yml b/tools/ansible/vars/vault.yml new file mode 100644 index 0000000..0a9d2b7 --- /dev/null +++ b/tools/ansible/vars/vault.yml @@ -0,0 +1,12 @@ +$ANSIBLE_VAULT;1.1;AES256 +61653737643939333936636566323038316561323033633831656536643733343639356232356538 +3238306433353165626531646366646132626233646561390a386534373066346234373237373865 +64363663323662666261616136663239366634643135386433613639313532653262373932386166 +3736626562653963390a666566643537356436303166356130616530306562303565323637343631 +31333837303166623130353530636366663464346431643837303637343863353764373236303861 +65623364383839623063393466303637653865393031626234366361333261633238383261646233 +31313131393933636236326463313830346534613862333733306265633962663964386638623435 +64323437373262653862383063343436633237353865386539653263623935626431363362363436 +37306338313134383334316232383238663830346231393638353834663730663663626465353862 +34366132653430326230613164333533326463346638393866636465343237613263346232663538 +306164366133323334373862353238343834