diff options
author | Jonathan Bauer | 2017-05-29 12:41:33 +0200 |
---|---|---|
committer | Jonathan Bauer | 2017-05-29 12:41:33 +0200 |
commit | 7eafd1c12b12a2cfdbfd76b40ff416826e19079d (patch) | |
tree | 063408b254a2dadfc5ae13e5f9da1b1c9c87729d | |
parent | added support for ROOTPW (diff) | |
download | ansible-dracut-7eafd1c12b12a2cfdbfd76b40ff416826e19079d.tar.gz ansible-dracut-7eafd1c12b12a2cfdbfd76b40ff416826e19079d.tar.xz ansible-dracut-7eafd1c12b12a2cfdbfd76b40ff416826e19079d.zip |
add skeleton setup-bwlp role
this role will handle the mltk call until proper ansible modules are
written
-rw-r--r-- | setup-bwlp.yml | 7 | ||||
-rw-r--r-- | setup-bwlp/README.md | 2 | ||||
-rw-r--r-- | setup-bwlp/defaults/main.yml | 2 | ||||
-rw-r--r-- | setup-bwlp/files/.placeholder | 0 | ||||
-rw-r--r-- | setup-bwlp/meta/main.yml | 3 | ||||
-rw-r--r-- | setup-bwlp/tasks/distro.yml | 18 | ||||
-rw-r--r-- | setup-bwlp/tasks/main.yml | 12 | ||||
-rw-r--r-- | setup-bwlp/vars/main.yml | 2 |
8 files changed, 46 insertions, 0 deletions
diff --git a/setup-bwlp.yml b/setup-bwlp.yml new file mode 100644 index 0000000..9d7b9e9 --- /dev/null +++ b/setup-bwlp.yml @@ -0,0 +1,7 @@ +--- +- hosts: "all" + gather_facts: yes + pre_tasks: + - setup: + roles: + - { role: "setup-bwlp", packer_version: "0.12.2" } diff --git a/setup-bwlp/README.md b/setup-bwlp/README.md new file mode 100644 index 0000000..0619a27 --- /dev/null +++ b/setup-bwlp/README.md @@ -0,0 +1,2 @@ +# WORK IN PROGRESS + diff --git a/setup-bwlp/defaults/main.yml b/setup-bwlp/defaults/main.yml new file mode 100644 index 0000000..61e7f27 --- /dev/null +++ b/setup-bwlp/defaults/main.yml @@ -0,0 +1,2 @@ +--- +packer_version: "0.12.2" diff --git a/setup-bwlp/files/.placeholder b/setup-bwlp/files/.placeholder new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/setup-bwlp/files/.placeholder diff --git a/setup-bwlp/meta/main.yml b/setup-bwlp/meta/main.yml new file mode 100644 index 0000000..713e243 --- /dev/null +++ b/setup-bwlp/meta/main.yml @@ -0,0 +1,3 @@ +--- +dependencies: + - { role: setup-dev-tools } diff --git a/setup-bwlp/tasks/distro.yml b/setup-bwlp/tasks/distro.yml new file mode 100644 index 0000000..1e7a1c5 --- /dev/null +++ b/setup-bwlp/tasks/distro.yml @@ -0,0 +1,18 @@ +--- +- set_fact: + pkgnames: + - qt-devel + when: + - ansible_distribution == "CentOS" +- set_fact: + pkgnames: + - libqt4-dev + - m4 + - squashfs-tools + - pkg-config + - cmake + - build-essential + - xserver-xorg + when: + - ansible_distribution == "Ubuntu" + diff --git a/setup-bwlp/tasks/main.yml b/setup-bwlp/tasks/main.yml new file mode 100644 index 0000000..df54261 --- /dev/null +++ b/setup-bwlp/tasks/main.yml @@ -0,0 +1,12 @@ +--- +- include: tasks/distro.yml + +- name: mltk | Install dependencies + package: name={{ item }} state=installed + with_items: "{{ pkgnames }}" + +- name: mltk | Checkout repository + git: + repo: "{{ gitsource }}" + dest: "{{ gittarget }}" + depth: 1 diff --git a/setup-bwlp/vars/main.yml b/setup-bwlp/vars/main.yml new file mode 100644 index 0000000..3f806d1 --- /dev/null +++ b/setup-bwlp/vars/main.yml @@ -0,0 +1,2 @@ +gitsource: "https://github.com/OpenSLX/mltk" +gittarget: "/opt/mltk" |