Skip to content
Snippets Groups Projects
Commit 679e8086 authored by jurgenhaas's avatar jurgenhaas
Browse files

Optimize initial setup by using submodules

parent 0c52efa2
No related branches found
No related tags found
No related merge requests found
php @ 9a9898f8
Subproject commit 9a9898f82958f2948a3a21145e3cffcd94f622ea
piwik @ 50ae2f40
Subproject commit 50ae2f407b7e3f6b0dc8588ef7aaa313986a8cef
redis @ 3b4ebeb3
Subproject commit 3b4ebeb3c3ec4792dda7e6b81a21a7c12cd98175
serverdensity @ 07e37b17
Subproject commit 07e37b170cb43b6a768f53f20e5ea4fe49fabd31
sftp @ 1d925cf3
Subproject commit 1d925cf36ed13eb4f81965fa3f7b166b756e1af5
svnserver @ 89171b69
Subproject commit 89171b6999b403e0cbe51e06c59fa12733542418
user-management @ d7032d97
Subproject commit d7032d976fe64aa9d53c31395eeac3f84c9c49b7
youtrack @ 15f9c0ff
Subproject commit 15f9c0ffa19d43a1a5c999b9ad2aea825dc7c89d
......@@ -14,10 +14,8 @@
vars:
repo: "git@gitlab.paragon-es.de"
plugins:
- name: "jiffybox"
repo: "{{ repo }}:ansible-plugins/jiffybox.git"
- name: "serverdensity"
repo: "{{ repo }}:ansible-plugins/serverdensity.git"
- "jiffybox"
- "serverdensity"
tasks:
- name: "Get other repositories"
git:
......@@ -26,56 +24,9 @@
dest: "{{ item.dest }}"
force: "{{ item.force|default('yes') }}"
with_items:
- repo: "{{ repo }}:ansible-playbooks/general.git"
dest: "."
- repo: "{{ repo }}:ansible-inventories/{{ company }}.git"
dest: "./inventory"
force: no
- name: "Get roles"
git:
accept_hostkey: yes
repo: "{{ repo }}:ansible-roles/{{ item }}.git"
dest: "./roles/{{ item }}"
force: "yes"
with_items:
- "apache"
- "aptproxy"
- "common"
- "commonauth"
- "compass"
- "drupal"
- "drush"
- "gitlab"
- "haproxy"
- "mysql"
- "mysql-client"
- "nodejs"
- "openphoto"
- "oracle"
- "owncloud"
- "php"
- "piwik"
- "redis"
- "serverdensity"
- "sftp"
- "svnserver"
- "user-management"
- "youtrack"
- name: "Get 3rd party roles"
git:
accept_hostkey: yes
repo: "{{ item.repo }}"
dest: "./roles/{{ item.name }}"
with_items:
- name: "composer"
repo: "https://github.com/kosssi/ansible-role-composer.git"
- name: "Get plugins"
git:
accept_hostkey: yes
repo: "{{ item.repo }}"
dest: "./plugins/{{ item.name }}"
force: "{{ item.force|default('yes') }}"
with_items: "{{ plugins }}"
- name: "Ensure plugins directory"
file:
dest="/usr/share/ansible_plugins/action_plugins"
......@@ -83,8 +34,8 @@
sudo: yes
- name: "Install plugins"
file:
src="{{ lookup('env','PWD') }}/plugins/{{ item.name }}/action_plugins/{{ item.name }}.py"
dest="/usr/share/ansible_plugins/action_plugins/{{ item.name }}.py"
src="{{ lookup('env','PWD') }}/plugins/{{ item }}/action_plugins/{{ item }}.py"
dest="/usr/share/ansible_plugins/action_plugins/{{ item }}.py"
state="link"
sudo: yes
with_items: "{{ plugins }}"
......@@ -115,3 +66,6 @@
- option: "ssh_args"
value: "-o IdentitiesOnly=yes"
section: "ssh_connection"
- option: "pipelining"
value: "False"
section: "ssh_connection"
wiki @ 930c1fe2
Subproject commit 930c1fe2aa9ab3f47d226cda2a7ecd5deb6d159f
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment