Skip to content
Snippets Groups Projects
Commit fef3e59b authored by nimrod's avatar nimrod
Browse files

Merge branch 'master' of cgit.shore.co.il:/srv/git/ansible-desktop-playbooks

parents 598ecfe0 c14a3097
No related branches found
No related tags found
No related merge requests found
...@@ -2,11 +2,13 @@ ...@@ -2,11 +2,13 @@
- hosts: all - hosts: all
become: false become: false
vars: vars:
gopath: '{{ ansible_user_dir }}/Documents/Golang'
apt: apt:
- adb - adb
- apache2-utils - apache2-utils
- apt-listchanges - apt-listchanges
- apt-xapian-index - apt-xapian-index
- aptitude
- bijiben - bijiben
- bluez-firmware - bluez-firmware
- brasero - brasero
...@@ -70,6 +72,7 @@ ...@@ -70,6 +72,7 @@
- linux-image-amd64 - linux-image-amd64
- liferea - liferea
- luarocks - luarocks
- lynx
- meld - meld
- mythes-en-us - mythes-en-us
- netcat-openbsd - netcat-openbsd
...@@ -197,11 +200,18 @@ ...@@ -197,11 +200,18 @@
update_cache: yes update_cache: yes
cache_valid_time: 3600 cache_valid_time: 3600
- name: Create the GOPATH directory
file:
path: '{{ gopath }}'
state: directory
- name: go get - name: go get
when: go is iterable when: go is iterable
command: 'go get -u {{ go|join(" ") }}' command: 'go get -u {{ go|join(" ") }}'
register: go_get register: go_get
changed_when: "'get' in go_get" changed_when: "'get' in go_get"
environment:
GOPATH: '{{ gopath }}'
- name: gem install - name: gem install
with_items: '{{ gem }}' with_items: '{{ gem }}'
......
...@@ -58,11 +58,21 @@ ...@@ -58,11 +58,21 @@
rule: allow rule: allow
- name: Create Docker graph directory - name: Create Docker graph directory
file: with_items:
path: '{{ docker_graph_directory }}' - path: '{{ docker_graph_directory|basename }}'
owner: '{{ ansible_env.SUDO_USER }}'
group: '{{ ansible_env.SUDO_USER }}'
mode: 0o0755
- path: '{{ docker_graph_directory }}'
owner: root owner: root
group: root group: root
mode: 0o711 mode: 0o0711
file:
path: '{{ item.path }}'
owner: '{{ item.owner }}'
group: '{{ item.group }}'
mode: '{{ item.mode }}'
state: directory
notify: notify:
- Restart Docker - Restart Docker
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment