From 1e2f68685002b84ad1f98bde175d888384d97d82 Mon Sep 17 00:00:00 2001 From: L3D Date: Fri, 19 May 2023 17:07:00 +0200 Subject: [PATCH 1/5] Update ansible lint --- meta/main.yml | 16 ++++++++-------- tasks/config.yml | 12 ++++++------ tasks/main.yml | 14 +++++++------- tasks/setup-Archlinux.yml | 4 ++-- tasks/setup-Debian.yml | 10 +++++++++- tasks/setup-RedHat.yml | 2 +- tasks/variables.yml | 19 ++++++++----------- tasks/versioncheck.yml | 23 ++++++++++++----------- vars/main.yml | 2 +- 9 files changed, 54 insertions(+), 48 deletions(-) diff --git a/meta/main.yml b/meta/main.yml index dbf92f8..c23216d 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -1,24 +1,24 @@ --- galaxy_info: role_name: i3wm - author: do1jlr + author: l3d description: Install and configure i3wm on common linux distibutions (https://i3wm.org/) license: "MIT" - min_ansible_version: 2.11 + min_ansible_version: '2.13' github_branch: main platforms: - - name: Archlinux - versions: all + - name: ArchLinux + versions: ['all'] - name: Debian - versions: all + versions: ['all'] - name: Ubuntu - versions: all + versions: ['all'] - name: Fedora - versions: all + versions: ['all'] galaxy_tags: - i3wm - desktop - linux - xorg - - wayland + - linux dependencies: [] diff --git a/tasks/config.yml b/tasks/config.yml index 78cdec0..c1ce8c4 100644 --- a/tasks/config.yml +++ b/tasks/config.yml @@ -8,7 +8,7 @@ owner: "{{ i3wm_user }}" group: "{{ i3wm_user }}" -- name: create i3 config folder +- name: Create i3 config folder become: true ansible.builtin.file: path: '/home/{{ i3wm_user }}/.config/i3/' @@ -17,7 +17,7 @@ owner: "{{ i3wm_user }}" group: "{{ i3wm_user }}" -- name: copy multiple images +- name: Copy multiple images ansible.builtin.copy: src: "{{ item.src }}" dest: "{{ item.dest }}" @@ -29,7 +29,7 @@ - { src: 'files/lockscreen.png', dest: '/home/{{ i3wm_user }}/.config/lockscreen.png' } when: i3wm_copy_wallpapers | bool -- name: copy and validate i3wm config file +- name: Copy and validate i3wm config file become: true ansible.builtin.template: src: templates/config.j2 @@ -41,7 +41,7 @@ group: "{{ i3wm_user }}" # todo: rewrite user stuff and support multiple users -- name: mkdir ~/.config/i3blocks/ +- name: Mkdir ~/.config/i3blocks/ become: true ansible.builtin.file: path: "/home/{{ i3wm_user }}/.config/i3blocks/" @@ -50,7 +50,7 @@ owner: "{{ i3wm_user }}" group: "{{ i3wm_user }}" -- name: copy i3blocks config +- name: Copy i3blocks config become: true ansible.builtin.copy: src: "files/i3blocks/config" @@ -59,7 +59,7 @@ owner: "{{ i3wm_user }}" group: "{{ i3wm_user }}" -- name: copy i3blocks config +- name: Copy i3blocks config become: true ansible.builtin.copy: src: "files/i3blocks/{{ item }}" diff --git a/tasks/main.yml b/tasks/main.yml index 5d4181d..585b686 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,22 +1,22 @@ --- -- name: run optional versionscheck +- name: Run optional versionscheck ansible.builtin.include_tasks: versioncheck.yml - when: submodules_versioncheck|bool + when: submodules_versionchecki | bool -- name: register variables +- name: Register variables ansible.builtin.import_tasks: variables.yml -- name: ensure i3 packages are installed [Debian] +- name: Ensure i3 packages are installed [Debian] ansible.builtin.include_tasks: setup-Debian.yml when: ansible_os_family == 'Debian' -- name: ensure i3 packages are installed [Archlinux} +- name: Ensure i3 packages are installed [Archlinux} ansible.builtin.include_tasks: setup-Archlinux.yml when: ansible_os_family == 'Archlinux' -- name: ensure i3 packages are installed [RHEL]. +- name: Ensure i3 packages are installed [RHEL]. ansible.builtin.include_tasks: setup-RedHat.yml when: ansible_os_family == 'Fedora' or ansible_os_family == 'RedHat' -- name: create i3 config file +- name: Create i3 config file ansible.builtin.include_tasks: config.yml diff --git a/tasks/setup-Archlinux.yml b/tasks/setup-Archlinux.yml index 6fa8068..2b65c7c 100644 --- a/tasks/setup-Archlinux.yml +++ b/tasks/setup-Archlinux.yml @@ -1,6 +1,6 @@ --- -- name: ensure i3 packages are installed. - ansible.builtin.pacman: +- name: Ensure i3 packages are installed. + community.general.pacman: name: "{{ i3_packages }}" state: present update_cache: true diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index cd5dec9..4170cbf 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -1,5 +1,13 @@ --- -- name: ensure i3 packages are installed. +- name: Update apt cache + become: true + ansible.builtin.apt: + cache_valid_time: 3600 + update_cache: true + when: + - ansible_pkg_mgr == "apt" + +- name: Ensure i3 packages are installed. ansible.builtin.apt: name: "{{ i3_packages }}" state: "present" diff --git a/tasks/setup-RedHat.yml b/tasks/setup-RedHat.yml index a629e80..f49b70f 100644 --- a/tasks/setup-RedHat.yml +++ b/tasks/setup-RedHat.yml @@ -1,5 +1,5 @@ --- -- name: ensure i3 packages are installed. +- name: Ensure i3 packages are installed. ansible.builtin.dnf: name: "{{ i3_packages }}" state: present diff --git a/tasks/variables.yml b/tasks/variables.yml index 7896d1c..856b0fe 100644 --- a/tasks/variables.yml +++ b/tasks/variables.yml @@ -1,45 +1,42 @@ --- -- name: register os-specific variables +- name: Register OS-specific Variables ansible.builtin.include_vars: "{{ ansible_os_family }}.yml" when: ansible_distribution != "Fedora" -- name: register Fedora variables +- name: Register Fedora-specific variables ansible.builtin.include_vars: "{{ ansible_distribution }}.yml" when: ansible_distribution == "Fedora" -# i3 packages -- name: define i3_packages +- name: Define i3_packages ansible.builtin.set_fact: i3_packages: "{{ __i3_packages | list }}" when: i3_packages is not defined -- name: define i3_packages_extra +- name: Define i3_packages_extra ansible.builtin.set_fact: i3_packages: "{{ i3_packages | list + i3_packages_extra | list }}" when: i3_packages_extra is defined -# i3 workspaces -- name: define i3_packages +- name: Define i3_packages ansible.builtin.set_fact: i3_workspaces: "{{ __i3_workspaces | list }}" when: i3_workspaces is not defined -# i3 keybindings -- name: define i3_packages +- name: Define i3_keybindings ansible.builtin.set_fact: i3_keybindings: "{{ __i3_keybindings | list }}" when: - i3_keybindings is not defined - __i3_keybindings is defined -- name: define extra i3 keybindings +- name: Define additional i3 keybindings ansible.builtin.set_fact: i3_keybindings: "{{ i3_keybindings_extra | list + i3_keybindings | list }}" when: - i3_keybindings_extra is defined - i3_keybindings is defined -- name: define extra i3 keybindings +- name: Finalize i3 keybindings definition ansible.builtin.set_fact: i3_keybindings: "{{ i3_keybindings_extra | list }}" when: diff --git a/tasks/versioncheck.yml b/tasks/versioncheck.yml index 5128cc8..62687e5 100644 --- a/tasks/versioncheck.yml +++ b/tasks/versioncheck.yml @@ -8,37 +8,38 @@ path: '/etc/.ansible-version' state: directory mode: 0755 - when: submodules_versioncheck|bool + when: submodules_versioncheck | bool -- name: check playbook version +- name: Check playbook version become: true ansible.builtin.slurp: src: "/etc/.ansible-version/{{ playbook_version_path }}" - register: playbook_version - when: submodules_versioncheck|bool + register: i3wm_playbook_version + when: submodules_versioncheck | bool ignore_errors: true failed_when: false - name: Print remote role version ansible.builtin.debug: - msg: "Remote role version: {{ playbook_version.content | default('Y3VycmVudGx5IG5vdCBkZXBsb3llZAo=') | b64decode | string }}" - when: submodules_versioncheck|bool + msg: "Remote role version: {{ i3wm_playbook_version.content | default('Y3VycmVudGx5IG5vdCBkZXBsb3llZAo=') | b64decode | string }}" + when: submodules_versioncheck | bool - name: Print locale role version ansible.builtin.debug: - msg: "Local role version: '{{ playbook_version_number|string }}'." - when: submodules_versioncheck|bool + msg: "Local role version: '{{ playbook_version_number | string }}'." + when: submodules_versioncheck | bool - name: Check if your version is outdated ansible.builtin.fail: msg: "Your ansible module has the version '{{ playbook_version_number }}' and is outdated. You need to update it!" when: - - playbook_version.content|default("Mgo=")|b64decode|int - 1 >= playbook_version_number|int and submodules_versioncheck|bool + - i3wm_playbook_version.content|default("Mgo=")|b64decode|int - 1 >= playbook_version_number|int and submodules_versioncheck | bool -- name: write new version to remote disk +- name: Write new version to remote disk become: true ansible.builtin.copy: content: "{{ playbook_version_number }}" dest: "/etc/.ansible-version/{{ playbook_version_path }}" mode: '0644' - when: submodules_versioncheck|bool + when: submodules_versioncheck | bool + tags: skip_ansible_lint_template-instead-of-copy diff --git a/vars/main.yml b/vars/main.yml index f28d59c..02ba4b0 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -33,5 +33,5 @@ __i3_workspaces: user: "{{ i3wm_user }}" -playbook_version_number: 9024 # should be int +playbook_version_number: 9025 # should be int playbook_version_path: 'role-i3wm_chaos-bodensee_github.com.version' From 9b9a1e657e09970b122ad51e7e1102db279fdf02 Mon Sep 17 00:00:00 2001 From: L3D Date: Fri, 19 May 2023 17:30:18 +0200 Subject: [PATCH 2/5] Kick out failing jobs --- .../workflows/ansible-archlinux-latest.yml | 18 --------------- .github/workflows/ansible-debian-bullseye.yml | 18 --------------- .github/workflows/ansible-debian-buster.yml | 18 --------------- .github/workflows/ansible-debian-latest.yml | 18 --------------- .github/workflows/ansible-debian-sid.yml | 18 --------------- .github/workflows/ansible-debian-stable.yml | 23 ------------------- .github/workflows/ansible-debian-stretch.yml | 18 --------------- .github/workflows/ansible-ubuntu-bionic.yml | 18 --------------- .github/workflows/ansible-ubuntu-latest.yml | 18 --------------- .github/workflows/ansible-ubuntu-trusty.yml | 18 --------------- 10 files changed, 185 deletions(-) delete mode 100644 .github/workflows/ansible-archlinux-latest.yml delete mode 100644 .github/workflows/ansible-debian-bullseye.yml delete mode 100644 .github/workflows/ansible-debian-buster.yml delete mode 100644 .github/workflows/ansible-debian-latest.yml delete mode 100644 .github/workflows/ansible-debian-sid.yml delete mode 100644 .github/workflows/ansible-debian-stable.yml delete mode 100644 .github/workflows/ansible-debian-stretch.yml delete mode 100644 .github/workflows/ansible-ubuntu-bionic.yml delete mode 100644 .github/workflows/ansible-ubuntu-latest.yml delete mode 100644 .github/workflows/ansible-ubuntu-trusty.yml diff --git a/.github/workflows/ansible-archlinux-latest.yml b/.github/workflows/ansible-archlinux-latest.yml deleted file mode 100644 index edcd8c8..0000000 --- a/.github/workflows/ansible-archlinux-latest.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: Ansible check archlinux:latest - -# yamllint disable-line rule:truthy -on: [push, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: 'checkout git repo' - uses: actions/checkout@v3 - - - name: 'ansible check with archlinux:latest' - uses: roles-ansible/check-ansible-archlinux-latest-action@master - with: - targets: "./" diff --git a/.github/workflows/ansible-debian-bullseye.yml b/.github/workflows/ansible-debian-bullseye.yml deleted file mode 100644 index b50d111..0000000 --- a/.github/workflows/ansible-debian-bullseye.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: Ansible check debian:bullseye - -# yamllint disable-line rule:truthy -on: [push, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: 'checkout git repo' - uses: actions/checkout@v3 - - - name: 'ansible check with debian:bullseye' - uses: roles-ansible/check-ansible-debian-bullseye-action@main - with: - targets: "./" diff --git a/.github/workflows/ansible-debian-buster.yml b/.github/workflows/ansible-debian-buster.yml deleted file mode 100644 index a819e89..0000000 --- a/.github/workflows/ansible-debian-buster.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: Ansible check debian:buster - -# yamllint disable-line rule:truthy -on: [push, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: 'checkout git repo' - uses: actions/checkout@v3 - - - name: 'ansible check with debian:buster' - uses: roles-ansible/check-ansible-debian-buster-action@master - with: - targets: "./" diff --git a/.github/workflows/ansible-debian-latest.yml b/.github/workflows/ansible-debian-latest.yml deleted file mode 100644 index d06a132..0000000 --- a/.github/workflows/ansible-debian-latest.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: Ansible check debian:latest - -# yamllint disable-line rule:truthy -on: [push, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: 'checkout git repo' - uses: actions/checkout@v3 - - - name: 'ansible check with debian:latest' - uses: roles-ansible/check-ansible-debian-latest-action@master - with: - targets: "./" diff --git a/.github/workflows/ansible-debian-sid.yml b/.github/workflows/ansible-debian-sid.yml deleted file mode 100644 index 22cbbfb..0000000 --- a/.github/workflows/ansible-debian-sid.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: Ansible check debian:sid - -# yamllint disable-line rule:truthy -on: [push, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: 'checkout git repo' - uses: actions/checkout@v3 - - - name: 'ansible check with debian:sid' - uses: roles-ansible/check-ansible-debian-sid-action@master - with: - targets: "./" diff --git a/.github/workflows/ansible-debian-stable.yml b/.github/workflows/ansible-debian-stable.yml deleted file mode 100644 index bf06f77..0000000 --- a/.github/workflows/ansible-debian-stable.yml +++ /dev/null @@ -1,23 +0,0 @@ ---- -name: Ansible check debian:stable - -# yamllint disable-line rule:truthy -on: - push: - branches: '*' - pull_request: - branches: '*' - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - name: 'checkout git repo' - uses: actions/checkout@v3 - - - name: 'ansible check with debian:stable' - uses: roles-ansible/check-ansible-debian-stable-action@master - with: - targets: "./" diff --git a/.github/workflows/ansible-debian-stretch.yml b/.github/workflows/ansible-debian-stretch.yml deleted file mode 100644 index c291320..0000000 --- a/.github/workflows/ansible-debian-stretch.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: Ansible check debian:stretch - -# yamllint disable-line rule:truthy -on: [push, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: 'checkout git repo' - uses: actions/checkout@v3 - - - name: 'ansible check with debian:stretch' - uses: roles-ansible/check-ansible-debian-stretch-action@master - with: - targets: "./" diff --git a/.github/workflows/ansible-ubuntu-bionic.yml b/.github/workflows/ansible-ubuntu-bionic.yml deleted file mode 100644 index 0b07870..0000000 --- a/.github/workflows/ansible-ubuntu-bionic.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: Ansible check ubuntu:bionic - -# yamllint disable-line rule:truthy -on: [push, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: 'checkout git repo' - uses: actions/checkout@v3 - - - name: 'ansible check with ubuntu:bionic' - uses: roles-ansible/check-ansible-ubuntu-bionic-action@master - with: - targets: "./" diff --git a/.github/workflows/ansible-ubuntu-latest.yml b/.github/workflows/ansible-ubuntu-latest.yml deleted file mode 100644 index 583b6ad..0000000 --- a/.github/workflows/ansible-ubuntu-latest.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: Ansible check ubuntu:latest - -# yamllint disable-line rule:truthy -on: [push, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: 'checkout git repo' - uses: actions/checkout@v3 - - - name: ansible check with ubuntu:latest - uses: roles-ansible/check-ansible-ubuntu-latest-action@master - with: - targets: "./" diff --git a/.github/workflows/ansible-ubuntu-trusty.yml b/.github/workflows/ansible-ubuntu-trusty.yml deleted file mode 100644 index 3c265a3..0000000 --- a/.github/workflows/ansible-ubuntu-trusty.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: Ansible check ubuntu:trusty - -# yamllint disable-line rule:truthy -on: [push, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: 'checkout git repo' - uses: actions/checkout@v3 - - - name: ansible check with ubuntu:trusty - uses: roles-ansible/check-ansible-ubuntu-trusty-action@master - with: - targets: "./" From 40e3729153952d9f7a8600e3ed650e9a192dada6 Mon Sep 17 00:00:00 2001 From: L3D Date: Fri, 19 May 2023 19:00:08 +0200 Subject: [PATCH 3/5] Update workflows --- .github/dependabot.yml | 9 +++++++++ .github/workflows/ansible-linting-check.yml | 5 ++++- .github/workflows/galaxy.yml | 2 +- .github/workflows/yamllint.yaml | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..dde6f4a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,9 @@ +--- +# See https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates +version: 2 +updates: + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/ansible-linting-check.yml b/.github/workflows/ansible-linting-check.yml index 4d7dc8e..887fd9b 100644 --- a/.github/workflows/ansible-linting-check.yml +++ b/.github/workflows/ansible-linting-check.yml @@ -10,11 +10,14 @@ on: jobs: build: + runs-on: ubuntu-latest steps: - - name: 'checkout git repo' + - name: 'Checkout git repo' uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: 'Lint Ansible Playbook' uses: ansible/ansible-lint-action@v6 diff --git a/.github/workflows/galaxy.yml b/.github/workflows/galaxy.yml index adcecbd..39fa2be 100644 --- a/.github/workflows/galaxy.yml +++ b/.github/workflows/galaxy.yml @@ -16,7 +16,7 @@ jobs: uses: actions/checkout@v3 - name: 'release on galaxy' - uses: robertdebock/galaxy-action@1.2.0 + uses: robertdebock/galaxy-action@1.2.1 with: galaxy_api_key: ${{ secrets.galaxy_api_key }} git_branch: 'main' diff --git a/.github/workflows/yamllint.yaml b/.github/workflows/yamllint.yaml index d744e9c..361b111 100644 --- a/.github/workflows/yamllint.yaml +++ b/.github/workflows/yamllint.yaml @@ -17,7 +17,7 @@ jobs: uses: actions/checkout@v3 - name: 'Yamllint' - uses: karancode/yamllint-github-action@v2.0.0 + uses: karancode/yamllint-github-action@v2.1.1 with: yamllint_file_or_dir: '.' yamllint_config_filepath: './.yamllint' From 5476f763ba29d0434279efadcfc7d0c12373bed8 Mon Sep 17 00:00:00 2001 From: L3D Date: Fri, 19 May 2023 19:00:47 +0200 Subject: [PATCH 4/5] remove fedorra latest --- .github/workflows/ansible-fedora-latest.yml | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 .github/workflows/ansible-fedora-latest.yml diff --git a/.github/workflows/ansible-fedora-latest.yml b/.github/workflows/ansible-fedora-latest.yml deleted file mode 100644 index 78fa27f..0000000 --- a/.github/workflows/ansible-fedora-latest.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: Ansible check fedora:latest - -# yamllint disable-line rule:truthy -on: [push, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: 'checkout git repo' - uses: actions/checkout@v3 - - - name: 'ansible check with fedora:latest' - uses: roles-ansible/check-ansible-fedora-latest-action@master - with: - targets: "./" From c0cc279ecbd18a877611cb614b88ce1cbcb363fb Mon Sep 17 00:00:00 2001 From: L3D Date: Fri, 19 May 2023 19:05:36 +0200 Subject: [PATCH 5/5] remove legacy test --- molecule/default/Dockerfile.j2 | 9 --- molecule/default/INSTALL.rst | 16 ----- molecule/default/create.yml | 59 ------------------ molecule/default/destroy.yml | 27 -------- molecule/default/molecule.yml | 32 ---------- molecule/default/playbook.yml | 50 --------------- molecule/default/prepare.yml | 5 -- .../test_default.cpython-27-PYTEST.pyc | Bin 2052 -> 0 bytes molecule/default/tests/test_default.py | 14 ----- molecule/default/tests/test_default.pyc | Bin 1021 -> 0 bytes molecule/no_vars/Dockerfile.j2 | 9 --- molecule/no_vars/INSTALL.rst | 16 ----- molecule/no_vars/create.yml | 59 ------------------ molecule/no_vars/destroy.yml | 27 -------- molecule/no_vars/molecule.yml | 28 --------- molecule/no_vars/playbook.yml | 6 -- molecule/no_vars/prepare.yml | 5 -- .../test_default.cpython-27-PYTEST.pyc | Bin 2058 -> 0 bytes molecule/no_vars/tests/test_default.py | 14 ----- molecule/no_vars/tests/test_default.pyc | Bin 1021 -> 0 bytes .../debian/virtualbox/action_provision | 1 - .../debian/virtualbox/action_set_name | 1 - .../machines/debian/virtualbox/creator_uid | 1 - tests/.vagrant/machines/debian/virtualbox/id | 1 - .../machines/debian/virtualbox/index_uuid | 1 - .../machines/debian/virtualbox/private_key | 27 -------- .../machines/debian/virtualbox/synced_folders | 1 - .../xenial/virtualbox/action_provision | 1 - .../xenial/virtualbox/action_set_name | 1 - .../machines/xenial/virtualbox/creator_uid | 1 - tests/.vagrant/machines/xenial/virtualbox/id | 1 - .../machines/xenial/virtualbox/index_uuid | 1 - .../machines/xenial/virtualbox/private_key | 27 -------- .../machines/xenial/virtualbox/synced_folders | 1 - .../inventory/vagrant_ansible_inventory | 8 --- tests/Vagrantfile | 30 --------- tests/playbook.yml | 52 --------------- travis/Dockerfile.debian-stretch | 18 ------ travis/Dockerfile.fedora-24 | 25 -------- travis/Dockerfile.fedora-25 | 25 -------- travis/Dockerfile.fedora-26 | 25 -------- travis/Dockerfile.fedora-27 | 25 -------- travis/Dockerfile.fedora-28 | 25 -------- travis/Dockerfile.fedora-29 | 25 -------- travis/Dockerfile.ubuntu-bionic | 12 ---- travis/test.yml | 6 -- 46 files changed, 718 deletions(-) delete mode 100644 molecule/default/Dockerfile.j2 delete mode 100644 molecule/default/INSTALL.rst delete mode 100644 molecule/default/create.yml delete mode 100644 molecule/default/destroy.yml delete mode 100644 molecule/default/molecule.yml delete mode 100644 molecule/default/playbook.yml delete mode 100644 molecule/default/prepare.yml delete mode 100644 molecule/default/tests/__pycache__/test_default.cpython-27-PYTEST.pyc delete mode 100644 molecule/default/tests/test_default.py delete mode 100644 molecule/default/tests/test_default.pyc delete mode 100644 molecule/no_vars/Dockerfile.j2 delete mode 100644 molecule/no_vars/INSTALL.rst delete mode 100644 molecule/no_vars/create.yml delete mode 100644 molecule/no_vars/destroy.yml delete mode 100644 molecule/no_vars/molecule.yml delete mode 100644 molecule/no_vars/playbook.yml delete mode 100644 molecule/no_vars/prepare.yml delete mode 100644 molecule/no_vars/tests/__pycache__/test_default.cpython-27-PYTEST.pyc delete mode 100644 molecule/no_vars/tests/test_default.py delete mode 100644 molecule/no_vars/tests/test_default.pyc delete mode 100644 tests/.vagrant/machines/debian/virtualbox/action_provision delete mode 100644 tests/.vagrant/machines/debian/virtualbox/action_set_name delete mode 100644 tests/.vagrant/machines/debian/virtualbox/creator_uid delete mode 100644 tests/.vagrant/machines/debian/virtualbox/id delete mode 100644 tests/.vagrant/machines/debian/virtualbox/index_uuid delete mode 100644 tests/.vagrant/machines/debian/virtualbox/private_key delete mode 100644 tests/.vagrant/machines/debian/virtualbox/synced_folders delete mode 100644 tests/.vagrant/machines/xenial/virtualbox/action_provision delete mode 100644 tests/.vagrant/machines/xenial/virtualbox/action_set_name delete mode 100644 tests/.vagrant/machines/xenial/virtualbox/creator_uid delete mode 100644 tests/.vagrant/machines/xenial/virtualbox/id delete mode 100644 tests/.vagrant/machines/xenial/virtualbox/index_uuid delete mode 100644 tests/.vagrant/machines/xenial/virtualbox/private_key delete mode 100644 tests/.vagrant/machines/xenial/virtualbox/synced_folders delete mode 100644 tests/.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory delete mode 100644 tests/Vagrantfile delete mode 100644 tests/playbook.yml delete mode 100644 travis/Dockerfile.debian-stretch delete mode 100644 travis/Dockerfile.fedora-24 delete mode 100644 travis/Dockerfile.fedora-25 delete mode 100644 travis/Dockerfile.fedora-26 delete mode 100644 travis/Dockerfile.fedora-27 delete mode 100644 travis/Dockerfile.fedora-28 delete mode 100644 travis/Dockerfile.fedora-29 delete mode 100644 travis/Dockerfile.ubuntu-bionic delete mode 100644 travis/test.yml diff --git a/molecule/default/Dockerfile.j2 b/molecule/default/Dockerfile.j2 deleted file mode 100644 index f8b4e75..0000000 --- a/molecule/default/Dockerfile.j2 +++ /dev/null @@ -1,9 +0,0 @@ -# Molecule managed - -FROM {{ item.image }} - -RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get upgrade -y && apt-get install -y python sudo bash ca-certificates && apt-get clean; \ - elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python2-dnf bash && dnf clean all; \ - elif [ $(command -v yum) ]; then yum makecache fast && yum update -y && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \ - elif [ $(command -v zypper) ]; then zypper refresh && zypper update -y && zypper install -y python sudo bash python-xml && zypper clean -a; \ - elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; fi diff --git a/molecule/default/INSTALL.rst b/molecule/default/INSTALL.rst deleted file mode 100644 index e26493b..0000000 --- a/molecule/default/INSTALL.rst +++ /dev/null @@ -1,16 +0,0 @@ -******* -Install -******* - -Requirements -============ - -* Docker Engine -* docker-py - -Install -======= - -.. code-block:: bash - - $ sudo pip install docker-py diff --git a/molecule/default/create.yml b/molecule/default/create.yml deleted file mode 100644 index bfb2149..0000000 --- a/molecule/default/create.yml +++ /dev/null @@ -1,59 +0,0 @@ ---- -- name: Create - hosts: localhost - connection: local - gather_facts: false - no_log: "{{ not lookup('env', 'MOLECULE_DEBUG') | bool }}" - vars: - molecule_file: "{{ lookup('env', 'MOLECULE_FILE') }}" - molecule_ephemeral_directory: "{{ lookup('env', 'MOLECULE_EPHEMERAL_DIRECTORY') }}" - molecule_scenario_directory: "{{ lookup('env', 'MOLECULE_SCENARIO_DIRECTORY') }}" - molecule_yml: "{{ lookup('file', molecule_file) | molecule_from_yaml }}" - tasks: - - name: Create Dockerfiles from image names - template: - src: "{{ molecule_scenario_directory }}/Dockerfile.j2" - dest: "{{ molecule_ephemeral_directory }}/Dockerfile_{{ item.image | regex_replace('[^a-zA-Z0-9_]', '_') }}" - with_items: "{{ molecule_yml.platforms }}" - register: platforms - - - name: Discover local Docker images - docker_image_facts: - name: "molecule_local/{{ item.item.name }}" - with_items: "{{ platforms.results }}" - register: docker_images - - - name: Build an Ansible compatible image - docker_image: - path: "{{ molecule_ephemeral_directory }}" - name: "molecule_local/{{ item.item.image }}" - dockerfile: "{{ item.item.dockerfile | default(item.invocation.module_args.dest) }}" - force: "{{ item.item.force | default(true) }}" - with_items: "{{ platforms.results }}" - when: platforms.changed or docker_images.results | map(attribute='images') | select('equalto', []) | list | count >= 0 - - - name: Create molecule instance(s) - docker_container: - name: "{{ item.name }}" - hostname: "{{ item.name }}" - image: "molecule_local/{{ item.image }}" - state: started - recreate: false - log_driver: syslog - command: "{{ item.command | default('bash -c \"while true; do sleep 10000; done\"') }}" - privileged: "{{ item.privileged | default(omit) }}" - volumes: "{{ item.volumes | default(omit) }}" - capabilities: "{{ item.capabilities | default(omit) }}" - ports: "{{ item.exposed_ports | default(omit) }}" - register: server - with_items: "{{ molecule_yml.platforms }}" - async: 7200 - poll: 0 - - - name: Wait for instance(s) creation to complete - async_status: - jid: "{{ item.ansible_job_id }}" - register: docker_jobs - until: docker_jobs.finished - retries: 300 - with_items: "{{ server.results }}" diff --git a/molecule/default/destroy.yml b/molecule/default/destroy.yml deleted file mode 100644 index 3ce7478..0000000 --- a/molecule/default/destroy.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -- name: Destroy - hosts: localhost - connection: local - gather_facts: false - no_log: "{{ not lookup('env', 'MOLECULE_DEBUG') | bool }}" - vars: - molecule_file: "{{ lookup('env', 'MOLECULE_FILE') }}" - molecule_yml: "{{ lookup('file', molecule_file) | molecule_from_yaml }}" - tasks: - - name: Destroy molecule instance(s) - docker_container: - name: "{{ item.name }}" - state: absent - force_kill: "{{ item.force_kill | default(true) }}" - register: server - with_items: "{{ molecule_yml.platforms }}" - async: 7200 - poll: 0 - - - name: Wait for instance(s) deletion to complete - async_status: - jid: "{{ item.ansible_job_id }}" - register: docker_jobs - until: docker_jobs.finished - retries: 300 - with_items: "{{ server.results }}" diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml deleted file mode 100644 index 9aff02e..0000000 --- a/molecule/default/molecule.yml +++ /dev/null @@ -1,32 +0,0 @@ ---- -dependency: - name: galaxy -driver: - name: docker -lint: - name: yamllint -platforms: - - name: debian_stretch_default - image: debian:stretch -# - name: debian_jessie_default -# image: debian:jessie - - name: ubuntu_xenial_default - image: ubuntu:xenial -# - name: ubuntu_trusty_default -# image: ubuntu:trusty -provisioner: - name: ansible - lint: - name: ansible-lint -scenario: - name: default - test_sequence: - - lint - - syntax - - create - - prepare - - converge -verifier: - name: testinfra - lint: - name: flake8 diff --git a/molecule/default/playbook.yml b/molecule/default/playbook.yml deleted file mode 100644 index 3a3b221..0000000 --- a/molecule/default/playbook.yml +++ /dev/null @@ -1,50 +0,0 @@ ---- -- name: Converge - hosts: all - - vars: - i3_desktop_background: "~/wallpaper.jpg" - - i3_packages_extra: - - ranger - - i3_keybindings_extra: - - keybinding: - name: Volume (mute/unmute) - key: $mod+F12 - exec: --no-startup-id amixer sset Master toggle - - keybinding: - name: Volue (default) - key: $mod+Shift+F12 - exec: --no-startup-id amixer sset Master 40% - - i3_monitors: - - monitor: - id: 1 - output: "VGA-1" - mode: "1920x1080" - pos: "0x0" - rotate: "normal" - workspaces: [1, 2, 3, 4, 5, 6] - - monitor: - id: 2 - output: "HDMI-1" - mode: "1920x1080" - pos: "1920x0" - rotate: "normal" - workspaces: [7, 8, 9, 0] - - i3_applications: - - application: - class: "Firefox" - name: "firefox" - workspace: 1 - on_startup: false - - application: - class: "Code" - name: "code" - workspace: 7 - on_startup: true - - roles: - - role: i3 diff --git a/molecule/default/prepare.yml b/molecule/default/prepare.yml deleted file mode 100644 index 5358b3b..0000000 --- a/molecule/default/prepare.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- name: Prepare - hosts: all - gather_facts: false - tasks: [] diff --git a/molecule/default/tests/__pycache__/test_default.cpython-27-PYTEST.pyc b/molecule/default/tests/__pycache__/test_default.cpython-27-PYTEST.pyc deleted file mode 100644 index d788875d87525391a89900fcc89ef1306a6d4e02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2052 zcmcIkUvCpf5T84r9mjDJ5)hDwqP$dc3iu#EXr;OWAtOZ!Ml#SAznm_v zf#@w!;Lr=$U1kRl8f7>O|H0SM=Rn@Oztg_+Xs7LMcYbeo9^UUh_U>-)v^9hC`C;*d5`JSRG+klH5gP*mmvI4S=$ zY^7k666*(L+F~W_+N=~*XzT2xM0(CBS7~g*g5;S+iOCx~27($R2DR+kH%0h~A#8rR35zB>-JWGs9cY60Cb&}$4G1v^C{k_4j88wg|; z%N*-{9E*b(9H8bP5L5lXW4dS;F|ABvTK!T?uT2oM^uPH(F`fRVn9$`98fVZ(9aY2Z z3f*`2Q>B##N9rd`zEVQ!^&cDA(dLG#{Z$a_EwgoHLp8gayv;qCjl1MPZS<>geah-0pqeZW!dPg&_<6>49ptU-$lD!-u?`buWO3T}W2L#AkZGZ` z=SzJatf%(VQ5<+uWYXJ<(_KII5`QT4yb<~X!4l1BzHN#grb%1MRO-{LFi7Rl*PeKq z#eU*z2o0!Cng~O1;q(e?0zhoM^wVMHOQHFVGc{=N(`B@|%ewri=><$2MPAygGd}ls zZN}&F>nHdR@?3vwCeQhw8!%61Qujciy@$e04~2V}$^(`8ec@&@eBx{2`iTm6W8sF^ z++iAv{s?p+2L344E+=$b3_ZLmBG4bhBN&W4LO$q-(l{uN)G6fej&m zFd0a{InrUQnnkdl93=?~$FOHAreH?Rbi)Z%wtPEJRX0D(ens*ml;{aIv?sKeKO@rw n8PEA%_XlWvsLJ;$O%+~#9i{<__?x-xd|T?YN_87QYpwJirf=1_ diff --git a/molecule/default/tests/test_default.py b/molecule/default/tests/test_default.py deleted file mode 100644 index eedd64a..0000000 --- a/molecule/default/tests/test_default.py +++ /dev/null @@ -1,14 +0,0 @@ -import os - -import testinfra.utils.ansible_runner - -testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( - os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') - - -def test_hosts_file(host): - f = host.file('/etc/hosts') - - assert f.exists - assert f.user == 'root' - assert f.group == 'root' diff --git a/molecule/default/tests/test_default.pyc b/molecule/default/tests/test_default.pyc deleted file mode 100644 index 2bf46a6e12dcbd714aa4a01b73b4359a7e788896..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1021 zcmdr~%}(4f5FRJtSEYNZDlVLJVRPVGRYfSMRNF;bT2S{AWfN!X;I$)rf{I`-Ef2vP z^?~{T?bz7>rEkzA9*@6_zZrky@Yl|EbbmZ8VD*GFzoTJ4kSXb7AOWTiK7(lhJb*fc zI)Zu)I6%D)WdOTB7}Oh3hCt4A6UqqgXy=xrIE&YaPW+~4jIYW4csfdtK9ADuWPF~E zKb=m#WXC6?6kYmU%7W1xti}<|c0}fuQu&G~!IHr(mXmPTvz<@!}6B*%4v`8VMrUXpugEjK8%N{!LRhqVrI zXPg_|HnA(+K(m*ApF8qw^}S|Q7QJeW5Zvt*$qFIveTokHtNK^P)8 zi7mLwjnK&zH=+`RAh#$~W%A_a=4t4#XUa-pc!AnnFPG0_db&*I3;yr#KFMDcE@4*k zDsLqYn`<1= 0 - - - name: Create molecule instance(s) - docker_container: - name: "{{ item.name }}" - hostname: "{{ item.name }}" - image: "molecule_local/{{ item.image }}" - state: started - recreate: false - log_driver: syslog - command: "{{ item.command | default('bash -c \"while true; do sleep 10000; done\"') }}" - privileged: "{{ item.privileged | default(omit) }}" - volumes: "{{ item.volumes | default(omit) }}" - capabilities: "{{ item.capabilities | default(omit) }}" - ports: "{{ item.exposed_ports | default(omit) }}" - register: server - with_items: "{{ molecule_yml.platforms }}" - async: 7200 - poll: 0 - - - name: Wait for instance(s) creation to complete - async_status: - jid: "{{ item.ansible_job_id }}" - register: docker_jobs - until: docker_jobs.finished - retries: 300 - with_items: "{{ server.results }}" diff --git a/molecule/no_vars/destroy.yml b/molecule/no_vars/destroy.yml deleted file mode 100644 index 3ce7478..0000000 --- a/molecule/no_vars/destroy.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -- name: Destroy - hosts: localhost - connection: local - gather_facts: false - no_log: "{{ not lookup('env', 'MOLECULE_DEBUG') | bool }}" - vars: - molecule_file: "{{ lookup('env', 'MOLECULE_FILE') }}" - molecule_yml: "{{ lookup('file', molecule_file) | molecule_from_yaml }}" - tasks: - - name: Destroy molecule instance(s) - docker_container: - name: "{{ item.name }}" - state: absent - force_kill: "{{ item.force_kill | default(true) }}" - register: server - with_items: "{{ molecule_yml.platforms }}" - async: 7200 - poll: 0 - - - name: Wait for instance(s) deletion to complete - async_status: - jid: "{{ item.ansible_job_id }}" - register: docker_jobs - until: docker_jobs.finished - retries: 300 - with_items: "{{ server.results }}" diff --git a/molecule/no_vars/molecule.yml b/molecule/no_vars/molecule.yml deleted file mode 100644 index 3d5c500..0000000 --- a/molecule/no_vars/molecule.yml +++ /dev/null @@ -1,28 +0,0 @@ ---- -dependency: - name: galaxy -driver: - name: docker -lint: - name: yamllint -platforms: - - name: debian_stretch_empty_vars - image: debian:stretch - - name: ubuntu_xenial_empty_vars - image: ubuntu:xenial -provisioner: - name: ansible - lint: - name: ansible-lint -scenario: - name: no_vars - test_sequence: - - lint - - syntax - - create - - prepare - - converge -verifier: - name: testinfra - lint: - name: flake8 diff --git a/molecule/no_vars/playbook.yml b/molecule/no_vars/playbook.yml deleted file mode 100644 index de57e3c..0000000 --- a/molecule/no_vars/playbook.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -- name: Converge - hosts: all - - roles: - - role: i3 diff --git a/molecule/no_vars/prepare.yml b/molecule/no_vars/prepare.yml deleted file mode 100644 index 5358b3b..0000000 --- a/molecule/no_vars/prepare.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- name: Prepare - hosts: all - gather_facts: false - tasks: [] diff --git a/molecule/no_vars/tests/__pycache__/test_default.cpython-27-PYTEST.pyc b/molecule/no_vars/tests/__pycache__/test_default.cpython-27-PYTEST.pyc deleted file mode 100644 index 7b5422a4cd2fac1666cda006c7b3148cd2dd5479..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2058 zcmcIkUvC>l5T84r9mjE!rbV=Q0ObYAf#NGIO{s)YtICxk1-Eirpnf@ReCy;c=eyJH zI%!nF3jp8PSE^WSWC|;$o zLLdff6ngX%?5?weN3ANHMStPznad!*eX!TP_hhdd?DoFv_8vdzKMn5h?sW}=6G<`z zV5(!(Fz#XKj!QHpiY;C^m^n0sKM*cWUD7`@1o*xjVe!b=C|(d9)kyD>@hGnH0i0An zShiNOX@&K}D($cmc3oBqYqay>tU_kVD%WXh!-C{Thf^^_YRv}p>U1a5v;D4IwLsoD6+24K>hP9)QYw6Zm1=6&q8l7bQJ6YMMx5eCT}2+ zMJ!9K_i8L2V(@^PgFsBpH^=muTgJ38kLlvOV*1qvu}J^#|0SkN|0*VQ`J>hcXrrEP zVD_aM`iGe|+JGbdDJG${RA%dwR(^VYTQ{DU#8$^{UE9`e`7FYT#>{YUj%=sqr`O8$ zIqkGe%pC zwM10V?+fcSaQY$H>MEexERLc?8ou~N#!VCCo%}S|pG1j?Qf*~PHWZ0ATu#W0 z)Fu$hTmc*C!)%g-fs(lj4w7tNBta_1(kxq{7)h2GPV-$`^e9WaN@dDiVuewr#=->h zS)Pbg7ziz>UY1HraN*1bYXU%Gy$rK)E|fI<#@QOQ`029R++}@!)XWMdj-n{-7Yn}d zcVod9@-NTvFXe^)&O%=BU$tPK?4%!pLVJ&;pPfkmBvVH^7endiDmoTM`XbfQej@$o zhCj{{Ih=r&rEkzA9*@6_zZrky@Yl|EbbmZ8VD*GFzoTJ4kSXb7AOWTiK7(lhJb*fc zI)Zu)I6%D)WdOTB7}Oh3hCt4A6UqqgXy=xrIE&YaPW+~4jIYW4csfdtK9ADuWPF~E zKb=m#WXC6?6kYmU%7W1xti}<|c0}fuQu&G~!IHr(mXmPTvz<@!}6B*%4v`8VMrUXpugEjK8%N{!LRhqVrI zXPg_|HnA(+K(m*ApF8qw^}S|Q7QJeW5Zvt*$qFIveTokHtNK^P)8 zi7mLwjnK&zH=+`RAh#$~W%A_a=4t4#XUa-pc!AnnFPG0_db&*I3;yr#KFMDcE@4*k zDsLqYn`<1 ["debian", "xenial"] - } - ansible.raw_arguments = ["-u vagrant"] - end - -end diff --git a/tests/playbook.yml b/tests/playbook.yml deleted file mode 100644 index dcf392f..0000000 --- a/tests/playbook.yml +++ /dev/null @@ -1,52 +0,0 @@ ---- -- hosts: all - i3wm_user: vagrant - - vars: - - desktop_env: - background: "~/Bilder/bg/background.jpg" - - i3_packages_extra: - - ranger - - i3_keybindings_extra: - - keybinding: - name: Volume (mute/unmute) - key: $mod+F12 - exec: --no-startup-id amixer sset Master toggle - - keybinding: - name: Volue (default) - key: $mod+Shift+F12 - exec: --no-startup-id amixer sset Master 40% - - i3_monitors: - - monitor: - id: 1 - output: "VGA-1" - mode: "1920x1080" - pos: "0x0" - rotate: "normal" - workspaces: [1, 2, 3, 4, 5, 6] - - monitor: - id: 2 - output: "HDMI-1" - mode: "1920x1080" - pos: "1920x0" - rotate: "normal" - workspaces: [7, 8, 9, 0] - - i3_applications: - - application: - class: "Firefox" - name: "firefox" - workspace: 1 - on_startup: false - - application: - class: "Code" - name: "code" - workspace: 7 - on_startup: true - - roles: - - i3 diff --git a/travis/Dockerfile.debian-stretch b/travis/Dockerfile.debian-stretch deleted file mode 100644 index ee2fbc7..0000000 --- a/travis/Dockerfile.debian-stretch +++ /dev/null @@ -1,18 +0,0 @@ -FROM debian:stretch - -RUN apt-get update -y && apt-get install -y --no-install-recommends \ - software-properties-common \ - build-essential \ - libffi-dev \ - libssl-dev \ - python-dev \ - python-pip \ - git \ - systemd \ - && rm -rf /var/lib/apt/lists/* - -RUN pip install --upgrade setuptools && pip install ansible - -RUN mkdir -p /etc/ansible && echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts - -ENTRYPOINT ["/bin/systemd"] diff --git a/travis/Dockerfile.fedora-24 b/travis/Dockerfile.fedora-24 deleted file mode 100644 index 507453f..0000000 --- a/travis/Dockerfile.fedora-24 +++ /dev/null @@ -1,25 +0,0 @@ -FROM fedora:24 - -RUN dnf -y update - -RUN dnf -y install systemd && \ -(cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \ -rm -f /lib/systemd/system/multi-user.target.wants/*;\ -rm -f /etc/systemd/system/*.wants/*;\ -rm -f /lib/systemd/system/local-fs.target.wants/*; \ -rm -f /lib/systemd/system/sockets.target.wants/*udev*; \ -rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \ -rm -f /lib/systemd/system/basic.target.wants/*;\ -rm -f /lib/systemd/system/anaconda.target.wants/*; - -RUN dnf -y install python2 python-pip libffi-devel redhat-rpm-config python-devel openssl-devel sudo git @development-tools - -RUN pip install ansible - -RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers - -RUN mkdir -p /etc/ansible && echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts - -VOLUME ["/sys/fs/cgroup"] - -CMD ["/usr/sbin/init"] diff --git a/travis/Dockerfile.fedora-25 b/travis/Dockerfile.fedora-25 deleted file mode 100644 index 05d65c0..0000000 --- a/travis/Dockerfile.fedora-25 +++ /dev/null @@ -1,25 +0,0 @@ -FROM fedora:25 - -RUN dnf -y update - -RUN dnf -y install systemd && \ -(cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \ -rm -f /lib/systemd/system/multi-user.target.wants/*;\ -rm -f /etc/systemd/system/*.wants/*;\ -rm -f /lib/systemd/system/local-fs.target.wants/*; \ -rm -f /lib/systemd/system/sockets.target.wants/*udev*; \ -rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \ -rm -f /lib/systemd/system/basic.target.wants/*;\ -rm -f /lib/systemd/system/anaconda.target.wants/*; - -RUN dnf -y install python2 python-pip libffi-devel redhat-rpm-config python-devel openssl-devel sudo git @development-tools - -RUN pip install ansible - -RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers - -RUN mkdir -p /etc/ansible && echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts - -VOLUME ["/sys/fs/cgroup"] - -CMD ["/usr/sbin/init"] diff --git a/travis/Dockerfile.fedora-26 b/travis/Dockerfile.fedora-26 deleted file mode 100644 index 200e7e1..0000000 --- a/travis/Dockerfile.fedora-26 +++ /dev/null @@ -1,25 +0,0 @@ -FROM fedora:26 - -RUN dnf -y update - -RUN dnf -y install systemd && \ -(cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \ -rm -f /lib/systemd/system/multi-user.target.wants/*;\ -rm -f /etc/systemd/system/*.wants/*;\ -rm -f /lib/systemd/system/local-fs.target.wants/*; \ -rm -f /lib/systemd/system/sockets.target.wants/*udev*; \ -rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \ -rm -f /lib/systemd/system/basic.target.wants/*;\ -rm -f /lib/systemd/system/anaconda.target.wants/*; - -RUN dnf -y install python2 python-pip libffi-devel redhat-rpm-config python-devel openssl-devel sudo git @development-tools - -RUN pip install ansible - -RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers - -RUN mkdir -p /etc/ansible && echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts - -VOLUME ["/sys/fs/cgroup"] - -CMD ["/usr/sbin/init"] diff --git a/travis/Dockerfile.fedora-27 b/travis/Dockerfile.fedora-27 deleted file mode 100644 index de33d3f..0000000 --- a/travis/Dockerfile.fedora-27 +++ /dev/null @@ -1,25 +0,0 @@ -FROM fedora:27 - -RUN dnf -y update - -RUN dnf -y install systemd && \ -(cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \ -rm -f /lib/systemd/system/multi-user.target.wants/*;\ -rm -f /etc/systemd/system/*.wants/*;\ -rm -f /lib/systemd/system/local-fs.target.wants/*; \ -rm -f /lib/systemd/system/sockets.target.wants/*udev*; \ -rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \ -rm -f /lib/systemd/system/basic.target.wants/*;\ -rm -f /lib/systemd/system/anaconda.target.wants/*; - -RUN dnf -y install python2 python-pip libffi-devel redhat-rpm-config python-devel openssl-devel sudo git @development-tools - -RUN pip install ansible - -RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers - -RUN mkdir -p /etc/ansible && echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts - -VOLUME ["/sys/fs/cgroup"] - -CMD ["/usr/sbin/init"] diff --git a/travis/Dockerfile.fedora-28 b/travis/Dockerfile.fedora-28 deleted file mode 100644 index 9f88b0f..0000000 --- a/travis/Dockerfile.fedora-28 +++ /dev/null @@ -1,25 +0,0 @@ -FROM fedora:28 - -RUN dnf -y update - -RUN dnf -y install systemd && \ -(cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \ -rm -f /lib/systemd/system/multi-user.target.wants/*;\ -rm -f /etc/systemd/system/*.wants/*;\ -rm -f /lib/systemd/system/local-fs.target.wants/*; \ -rm -f /lib/systemd/system/sockets.target.wants/*udev*; \ -rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \ -rm -f /lib/systemd/system/basic.target.wants/*;\ -rm -f /lib/systemd/system/anaconda.target.wants/*; - -RUN dnf -y install python2 python-pip libffi-devel redhat-rpm-config python-devel openssl-devel sudo git @development-tools - -RUN pip install ansible - -RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers - -RUN mkdir -p /etc/ansible && echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts - -VOLUME ["/sys/fs/cgroup"] - -CMD ["/usr/sbin/init"] diff --git a/travis/Dockerfile.fedora-29 b/travis/Dockerfile.fedora-29 deleted file mode 100644 index aaa82ff..0000000 --- a/travis/Dockerfile.fedora-29 +++ /dev/null @@ -1,25 +0,0 @@ -FROM fedora:29 - -RUN dnf -y update - -RUN dnf -y install systemd && \ -(cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \ -rm -f /lib/systemd/system/multi-user.target.wants/*;\ -rm -f /etc/systemd/system/*.wants/*;\ -rm -f /lib/systemd/system/local-fs.target.wants/*; \ -rm -f /lib/systemd/system/sockets.target.wants/*udev*; \ -rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \ -rm -f /lib/systemd/system/basic.target.wants/*;\ -rm -f /lib/systemd/system/anaconda.target.wants/*; - -RUN dnf -y install python2 python-pip libffi-devel redhat-rpm-config python-devel openssl-devel sudo git @development-tools - -RUN pip install ansible - -RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers - -RUN mkdir -p /etc/ansible && echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts - -VOLUME ["/sys/fs/cgroup"] - -CMD ["/usr/sbin/init"] diff --git a/travis/Dockerfile.ubuntu-bionic b/travis/Dockerfile.ubuntu-bionic deleted file mode 100644 index b535edb..0000000 --- a/travis/Dockerfile.ubuntu-bionic +++ /dev/null @@ -1,12 +0,0 @@ -FROM ubuntu:bionic - -RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y software-properties-common systemd && rm -rf /var/lib/apt/lists/* - -RUN apt-add-repository -y ppa:ansible/ansible && apt-get update && apt-get install -y \ - git \ - ansible \ - && rm -rf /var/lib/apt/lists/* - -RUN echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts - -ENTRYPOINT ["/bin/systemd"] diff --git a/travis/test.yml b/travis/test.yml deleted file mode 100644 index b5f1ff4..0000000 --- a/travis/test.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -- hosts: all - vars: - i3wm_user: "{{ ansible_user_id }}" - roles: - - travis_test