-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
172 additions
and
371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
--- | ||
|
||
- name: ensure apt cache is up to date | ||
apt: | ||
force_apt_get: yes | ||
update_cache: yes | ||
cache_valid_time: 3600 | ||
become: yes | ||
changed_when: False | ||
check_mode: False | ||
#- name: ensure apt cache is up to date | ||
# apt: | ||
# force_apt_get: yes | ||
# update_cache: yes | ||
# cache_valid_time: 3600 | ||
# become: yes | ||
# changed_when: False | ||
# check_mode: False | ||
|
||
- name: ensure apt packages are managed | ||
apt: | ||
state: "{{ apt_state }}" | ||
name: "{{ item }}" | ||
name: "{{ packages }}" | ||
autoclean: yes | ||
autoremove: yes | ||
force_apt_get: yes | ||
update_cache: yes | ||
cache_valid_time: 3600 | ||
install_recommends: no | ||
vars: | ||
packages: "{{ apt_packages }}" | ||
become: yes | ||
with_items: "{{ apt_packages }}" | ||
#notify: clean apt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,32 @@ | ||
--- | ||
|
||
- name: fetch docker compose info | ||
uri: | ||
url: https://api.github.com/repos/docker/compose/releases/latest | ||
method: GET | ||
register: docker_json | ||
check_mode: no | ||
- name: ensure docker-compose is installed | ||
include_role: | ||
name: apt-meta | ||
vars: | ||
apt_packages: "{{ [docker_compose_package_name] }}" | ||
|
||
- name: set latest docker compose version | ||
set_fact: | ||
docker_compose_version: "{{ docker_json.json.name }}" | ||
check_mode: no | ||
|
||
- name: ensure docker compose is downloaded | ||
get_url: | ||
url: "https://github.com/docker/compose/releases/download/{{ docker_compose_version }}/docker-compose-Linux-x86_64" | ||
dest: "{{ docker_compose_path }}" | ||
mode: 0755 | ||
force: yes | ||
timeout: 30 | ||
register: task_result | ||
until: task_result | succeeded | ||
retries: 10 | ||
delay: 5 | ||
become: yes | ||
#- name: fetch docker compose info | ||
# uri: | ||
# url: https://api.github.com/repos/docker/compose/releases/latest | ||
# method: GET | ||
# register: docker_json | ||
# check_mode: no | ||
# | ||
#- name: set latest docker compose version | ||
# set_fact: | ||
# docker_compose_version: "{{ docker_json.json.name }}" | ||
# check_mode: no | ||
# | ||
#- name: ensure docker compose is downloaded | ||
# get_url: | ||
# url: "https://github.com/docker/compose/releases/download/{{ docker_compose_version }}/docker-compose-Linux-x86_64" | ||
# dest: "{{ docker_compose_path }}" | ||
# mode: 0755 | ||
# force: yes | ||
# timeout: 30 | ||
# register: task_result | ||
# until: task_result is succeeded | ||
# retries: 10 | ||
# delay: 5 | ||
# become: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
--- | ||
|
||
- name: ensure docker compose is removed | ||
file: | ||
state: absent | ||
path: "{{ docker_compose_path }}" | ||
become: yes | ||
- name: ensure docker-compose is removed | ||
include_role: | ||
name: apt-meta | ||
vars: | ||
apt_state: absent | ||
apt_packages: "{{ docker_compose_package_name }}" | ||
|
||
#- name: ensure docker compose is removed | ||
# file: | ||
# state: absent | ||
# path: "{{ docker_compose_path }}" | ||
# become: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
--- | ||
|
||
docker_compose_path: /usr/local/bin/docker-compose | ||
docker_compose_package_name: docker-compose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,3 @@ | |
|
||
# 'install', 'remove' or 'ignore' | ||
libreoffice: 'ignore' | ||
|
||
libreoffice_dpi: 96 |
Oops, something went wrong.