diff --git a/Vagrantfile b/Vagrantfile deleted file mode 100644 index 57b9dcf..0000000 --- a/Vagrantfile +++ /dev/null @@ -1,22 +0,0 @@ -# -*- mode: ruby -*- -# vi: set ft=ruby : - -Vagrant.configure("2") do |config| - config.vm.provision "ansible_local" do |ansible| - ansible.playbook = "tests/test.yml" - ansible.verbose = "vvv" - ansible.galaxy_roles_path = ".vagrant/roles" - ansible.galaxy_role_file = "requirements.yml" - ansible.become = true - ansible.galaxy_command = "sudo ansible-galaxy install --role-file=%{role_file} --roles-path=%{roles_path} --force" - end - - config.vm.provider "virtualbox" do |v| - v.memory = 1024 - v.cpus = 1 - end - - config.vm.network "forwarded_port", guest: 3000, host: 3333 - config.vm.box = "ubuntu/xenial64" - config.ssh.forward_agent = true -end \ No newline at end of file diff --git a/ansible.cfg b/ansible.cfg deleted file mode 100644 index 60e44ec..0000000 --- a/ansible.cfg +++ /dev/null @@ -1,6 +0,0 @@ -[defaults] -host_key_checking = False -allow_world_readable_tmpfiles=True - -[ssh_connection] -ssh_args = -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s diff --git a/templates/env.j2 b/templates/env.j2 deleted file mode 100644 index 64f9de2..0000000 --- a/templates/env.j2 +++ /dev/null @@ -1,3 +0,0 @@ -{% for k,v in express_app_settings.items() %} -{{k}}={{v}} -{% endfor %} \ No newline at end of file diff --git a/tests/inventory b/tests/inventory deleted file mode 100644 index 878877b..0000000 --- a/tests/inventory +++ /dev/null @@ -1,2 +0,0 @@ -localhost - diff --git a/tests/test.yml b/tests/test.yml deleted file mode 100644 index 258882f..0000000 --- a/tests/test.yml +++ /dev/null @@ -1,32 +0,0 @@ ---- -- name: Pre-install stuff - hosts: all - tasks: - - name: Install python 2 if not there - raw: | - test -e /usr/bin/python || \ - (apt -y update && apt install -y python-minimal) - register: output - changed_when: output.stdout|trim() != "" - - name: Install sudo if not there - raw: | - test -e /usr/bin/sudo || apt install -y sudo - register: output - changed_when: output.stdout|trim() != "" - gather_facts: False - become: True - -- name: Test React role - hosts: all - vars: - express_env_name: "prod" - react_system_user: "express" - express_node_version: 10.x - express_git_url: "https://github.com/onaio/reveal-express" - express_git_version: "master" - express_app_settings: - NODE_ENV: "production" - gather_facts: True - become: True - roles: - - role: ../.. \ No newline at end of file diff --git a/vars/main.yml b/vars/main.yml deleted file mode 100644 index 7ee8f2d..0000000 --- a/vars/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -# vars file for ansible-express