commit 7e3e16158fc8d2926b9b7744f9d24359c8f6239b Author: Wilfried OLLIVIER Date: Thu Jan 31 14:39:39 2019 +0100 Bootstrap aptup role diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e7d02d6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +tests/test.retry \ No newline at end of file diff --git a/LICENCE b/LICENCE new file mode 100644 index 0000000..5568253 --- /dev/null +++ b/LICENCE @@ -0,0 +1,13 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2019 Wilfried OLLIVIER + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/README.md b/README.md new file mode 100644 index 0000000..b780e24 --- /dev/null +++ b/README.md @@ -0,0 +1,35 @@ +galaxy-aptup +============ + +Update and upgrade on Debian / APT + +Requirements +------------ + +None + +Role Variables +-------------- + +None + +Dependencies +------------ + +None + +Example Playbook +---------------- + +Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: + + - hosts: servers + roles: + - galaxy-aptup + +Run tests +--------- + +Ensure galaxy-vagrant is up + + ansible-playbook -i tests/inventory tests/test.yml diff --git a/meta/main.yml b/meta/main.yml new file mode 100644 index 0000000..dd70d8e --- /dev/null +++ b/meta/main.yml @@ -0,0 +1,19 @@ +galaxy_info: + author: Wilfried OLLIVIER + description: Apt update and upgrade + company: none + + license: WTFPL + + min_ansible_version: 2.4 + + plateforms: + - name: Debian + versions: + - Stretch + + galaxy_tags: + - debian + - update + +dependencies: [] \ No newline at end of file diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..266dff3 --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,7 @@ +--- +# tasks file for galaxy-aptup + +- name: Apt update & upgrade + apt: + update_cache: yes + upgrade: yes diff --git a/tests/inventory b/tests/inventory new file mode 100644 index 0000000..53a1689 --- /dev/null +++ b/tests/inventory @@ -0,0 +1,2 @@ +galaxy-vagrant.example.com + diff --git a/tests/test.yml b/tests/test.yml new file mode 100644 index 0000000..573f377 --- /dev/null +++ b/tests/test.yml @@ -0,0 +1,5 @@ +--- +- hosts: galaxy-vagrant.example.com + remote_user: root + roles: + - ../galaxy-aptup \ No newline at end of file