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

- Install Aptitude for rcfiles aliases.

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