Adding ulimit

This commit is contained in:
Robert de Bock 2019-07-24 16:07:58 +02:00
parent c44c9f8b61
commit 595dce9789
2727 changed files with 1350 additions and 67527 deletions

View File

@ -1,7 +1,7 @@
namespace: "robertdebock"
name: "development_environment"
description: Install everything you need to develop Ansible roles.
version: "1.1.5"
version: "1.1.7"
readme: "README.md"
authors:
- "Robert de Bock"

View File

@ -233,6 +233,8 @@ git_repositories:
dest: ansible-role-update
- repo: ssh://git@github.com/robertdebock/ansible-role-update_package_cache.git
dest: ansible-role-update_package_cache
- repo: ssh://git@github.com/robertdebock/ansible-role-ulimit.git
dest: ansible-role-ulimit
- repo: ssh://git@github.com/robertdebock/ansible-role-users.git
dest: ansible-role-users
- repo: ssh://git@github.com/robertdebock/ansible-role-vagrant.git

View File

@ -19,9 +19,6 @@ env:
- version=">=2.7,<2.8" distro="centos-latest"
- version="" distro="centos-latest"
- version="devel" distro="centos-latest"
- version=">=2.7,<2.8" distro="debian-latest"
- version="" distro="debian-latest"
- version="devel" distro="debian-latest"
- version=">=2.7,<2.8" distro="debian-stable"
- version="" distro="debian-stable"
- version="devel" distro="debian-stable"
@ -56,7 +53,6 @@ matrix:
- env: version="devel" distro="archlinux"
- env: version="devel" distro="centos-6"
- env: version="devel" distro="centos-latest"
- env: version="devel" distro="debian-latest"
- env: version="devel" distro="debian-stable"
- env: version=">=2.7,<2.8" distro="debian-unstable"
- env: version="" distro="debian-unstable"

View File

@ -1,4 +1,10 @@
# Please contribute!
# Please contribute
You can really make a difference by:
- [Making an issue](https://help.github.com/articles/creating-an-issue/). A well described issue helps a lot.
- [Making a pull request](https://services.github.com/on-demand/github-cli/open-pull-request-github) when you see the error in code.
I'll try to help and take every contribution seriously.
It's a great opportunity for me to learn how you use the role and also an opportunity to get into the habit of contributing to open source software.

View File

@ -1,14 +1,15 @@
ansible
=========
[![Build Status](https://travis-ci.org/robertdebock/ansible-role-ansible.svg?branch=master)](https://travis-ci.org/robertdebock/ansible-role-ansible)
<img src="https://docs.ansible.com/ansible-tower/3.2.4/html_ja/installandreference/_static/images/logo_invert.png" width="10%" height="10%" alt="Ansible logo" align="right"/>
<a href="https://travis-ci.org/robertdebock/ansible-role-ansible"><img src="https://travis-ci.org/robertdebock/ansible-role-ansible.svg?branch=master" alt="Build status" align="left"/></a>
Install and configure ansible on your system.
Example Playbook
----------------
This example is taken from `molecule/default/playbook.yml`:
This example is taken from `molecule/resources/playbook.yml`:
```yaml
---
- name: Converge
@ -20,7 +21,7 @@ This example is taken from `molecule/default/playbook.yml`:
- robertdebock.ansible
```
The machine you are running this on, may need to be prepared. Tests have been done on machines prepared by this playbook:
The machine you are running this on, may need to be prepared.
```yaml
---
- name: Prepare
@ -60,7 +61,7 @@ Requirements
------------
- Access to a repository containing packages, likely on the internet.
- A recent version of Ansible. (Tests run on the last 3 release of Ansible.)
- A recent version of Ansible. (Tests run on the current, previous and next release of Ansible.)
The following roles can be installed to ensure all requirements are met, using `ansible-galaxy install -r requirements.yml`:
@ -85,14 +86,13 @@ Compatibility
This role has been tested against the following distributions and Ansible version:
|distribution|ansible 2.6|ansible 2.7|ansible devel|
|distribution|ansible 2.7|ansible 2.8|ansible devel|
|------------|-----------|-----------|-------------|
|alpine-edge*|yes|yes|yes*|
|alpine-latest|yes|yes|yes*|
|archlinux|yes|yes|yes*|
|centos-6|yes|yes|yes*|
|centos-latest|yes|yes|yes*|
|debian-latest|yes|yes|yes*|
|debian-stable|yes|yes|yes*|
|debian-unstable*|yes|yes|yes*|
|fedora-latest|yes|yes|yes*|
@ -111,26 +111,16 @@ Testing
If you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-ansible/issues)
To test this role locally please use [Molecule](https://github.com/metacloud/molecule):
To test this role locally please use [Molecule](https://github.com/ansible/molecule):
```
pip install molecule
molecule test
```
To test on Amazon EC2, configure [~/.aws/credentials](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html) and `export AWS_REGION=eu-central-1` before running `molecule test --scenario-name ec2`.
To test on Amazon EC2, configure [~/.aws/credentials](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html) and set a region using `export AWS_REGION=eu-central-1` before running `molecule test --scenario-name ec2`.
There are many specific scenarios available, please have a look in the `molecule/` directory.
Run the [ansible-galaxy](https://github.com/ansible/galaxy-lint-rules) and [my](https://github.com/robertdebock/ansible-lint-rules) lint rules if you want your change to be merges:
```shell
git clone https://github.com/ansible/ansible-lint.git /tmp/ansible-lint
ansible-lint -r /tmp/ansible-lint/lib/ansiblelint/rules .
git clone https://github.com/robertdebock/ansible-lint /tmp/my-ansible-lint
ansible-lint -r /tmp/my-ansible-lint/rules .
```
License
-------
@ -140,4 +130,4 @@ Apache-2.0
Author Information
------------------
[Robert de Bock](https://robertdebock.nl/) <robert@meinit.nl>
[Robert de Bock](https://robertdebock.nl/)

View File

@ -1 +1 @@
{install_date: 'Fri Jun 7 18:25:13 2019', version: 2.0.3}
{install_date: 'Mon Jul 22 11:30:40 2019', version: 2.0.6}

View File

@ -25,9 +25,6 @@ platforms:
- name: ansible-centos-latest
image: centos:latest
pre_build_image: yes
- name: ansible-debian-latest
image: debian:latest
pre_build_image: yes
- name: ansible-debian-stable
image: debian:stable
pre_build_image: yes
@ -41,7 +38,7 @@ platforms:
image: fedora:rawhide
pre_build_image: yes
- name: ansible-opensuse-leap
image: opensuse:leap
image: opensuse/leap
pre_build_image: yes
- name: ansible-ubuntu-latest
image: ubuntu:latest
@ -59,5 +56,11 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
host_vars:
ansible-fedora-latest:
ansible_python_interpreter: /usr/bin/python3
ansible-fedora-rawhide:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: default

View File

@ -18,5 +18,9 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
group_vars:
all:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: fedora-latest

View File

@ -20,5 +20,9 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
group_vars:
all:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: fedora-rawhide

View File

@ -9,7 +9,7 @@ driver:
name: docker
platforms:
- name: ansible-opensuse-leap
image: opensuse:leap
image: opensuse/leap
pre_build_image: yes
provisioner:
name: ansible

View File

@ -13,7 +13,7 @@ platforms:
- name: ansible-debian
box: debian/stretch64
- name: ansible-fedora
box: fedora/29-cloud-base
box: fedora/30-cloud-base
provisioner:
name: ansible
playbooks:
@ -21,5 +21,9 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
host_vars:
ansible-fedora:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: vagrant

View File

@ -19,9 +19,6 @@ env:
- version=">=2.7,<2.8" distro="centos-latest"
- version="" distro="centos-latest"
- version="devel" distro="centos-latest"
- version=">=2.7,<2.8" distro="debian-latest"
- version="" distro="debian-latest"
- version="devel" distro="debian-latest"
- version=">=2.7,<2.8" distro="debian-stable"
- version="" distro="debian-stable"
- version="devel" distro="debian-stable"
@ -56,7 +53,6 @@ matrix:
- env: version="devel" distro="archlinux"
- env: version="devel" distro="centos-6" expectation="fail"
- env: version="devel" distro="centos-latest"
- env: version="devel" distro="debian-latest"
- env: version="devel" distro="debian-stable"
- env: version=">=2.7,<2.8" distro="debian-unstable"
- env: version="" distro="debian-unstable"

View File

@ -1,4 +1,10 @@
# Please contribute!
# Please contribute
You can really make a difference by:
- [Making an issue](https://help.github.com/articles/creating-an-issue/). A well described issue helps a lot.
- [Making a pull request](https://services.github.com/on-demand/github-cli/open-pull-request-github) when you see the error in code.
I'll try to help and take every contribution seriously.
It's a great opportunity for me to learn how you use the role and also an opportunity to get into the habit of contributing to open source software.

View File

@ -1,14 +1,15 @@
ansible_lint
=========
[![Build Status](https://travis-ci.org/robertdebock/ansible-role-ansible_lint.svg?branch=master)](https://travis-ci.org/robertdebock/ansible-role-ansible_lint)
<img src="https://docs.ansible.com/ansible-tower/3.2.4/html_ja/installandreference/_static/images/logo_invert.png" width="10%" height="10%" alt="Ansible logo" align="right"/>
<a href="https://travis-ci.org/robertdebock/ansible-role-ansible_lint"><img src="https://travis-ci.org/robertdebock/ansible-role-ansible_lint.svg?branch=master" alt="Build status" align="left"/></a>
Install ansible-lint on your system.
Example Playbook
----------------
This example is taken from `molecule/default/playbook.yml`:
This example is taken from `molecule/resources/playbook.yml`:
```yaml
---
- name: Converge
@ -20,7 +21,7 @@ This example is taken from `molecule/default/playbook.yml`:
- robertdebock.ansible_lint
```
The machine you are running this on, may need to be prepared. Tests have been done on machines prepared by this playbook:
The machine you are running this on, may need to be prepared.
```yaml
---
- name: Prepare
@ -50,7 +51,7 @@ Requirements
------------
- Access to a repository containing packages, likely on the internet.
- A recent version of Ansible. (Tests run on the last 3 release of Ansible.)
- A recent version of Ansible. (Tests run on the current, previous and next release of Ansible.)
The following roles can be installed to ensure all requirements are met, using `ansible-galaxy install -r requirements.yml`:
@ -77,14 +78,13 @@ Compatibility
This role has been tested against the following distributions and Ansible version:
|distribution|ansible 2.6|ansible 2.7|ansible devel|
|distribution|ansible 2.7|ansible 2.8|ansible devel|
|------------|-----------|-----------|-------------|
|alpine-edge*|yes|yes|yes*|
|alpine-latest|yes|yes|yes*|
|archlinux|yes|yes|yes*|
|centos-6|no|no|no*|
|centos-latest|yes|yes|yes*|
|debian-latest|yes|yes|yes*|
|debian-stable|yes|yes|yes*|
|debian-unstable*|yes|yes|yes*|
|fedora-latest|yes|yes|yes*|
@ -103,26 +103,16 @@ Testing
If you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-ansible_lint/issues)
To test this role locally please use [Molecule](https://github.com/metacloud/molecule):
To test this role locally please use [Molecule](https://github.com/ansible/molecule):
```
pip install molecule
molecule test
```
To test on Amazon EC2, configure [~/.aws/credentials](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html) and `export AWS_REGION=eu-central-1` before running `molecule test --scenario-name ec2`.
To test on Amazon EC2, configure [~/.aws/credentials](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html) and set a region using `export AWS_REGION=eu-central-1` before running `molecule test --scenario-name ec2`.
There are many specific scenarios available, please have a look in the `molecule/` directory.
Run the [ansible-galaxy](https://github.com/ansible/galaxy-lint-rules) and [my](https://github.com/robertdebock/ansible-lint-rules) lint rules if you want your change to be merges:
```shell
git clone https://github.com/ansible/ansible-lint.git /tmp/ansible-lint
ansible-lint -r /tmp/ansible-lint/lib/ansiblelint/rules .
git clone https://github.com/robertdebock/ansible-lint /tmp/my-ansible-lint
ansible-lint -r /tmp/my-ansible-lint/rules .
```
License
-------
@ -132,4 +122,4 @@ Apache-2.0
Author Information
------------------
[Robert de Bock](https://robertdebock.nl/) <robert@meinit.nl>
[Robert de Bock](https://robertdebock.nl/)

View File

@ -1 +1 @@
{install_date: 'Fri Jun 7 18:25:19 2019', version: 2.0.2}
{install_date: 'Mon Jul 22 11:30:44 2019', version: 2.0.5}

View File

@ -25,9 +25,6 @@ platforms:
- name: ansible_lint-centos-latest
image: centos:latest
pre_build_image: yes
- name: ansible_lint-debian-latest
image: debian:latest
pre_build_image: yes
- name: ansible_lint-debian-stable
image: debian:stable
pre_build_image: yes
@ -41,7 +38,7 @@ platforms:
image: fedora:rawhide
pre_build_image: yes
- name: ansible_lint-opensuse-leap
image: opensuse:leap
image: opensuse/leap
pre_build_image: yes
- name: ansible_lint-ubuntu-latest
image: ubuntu:latest
@ -59,5 +56,11 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
host_vars:
ansible_lint-fedora-latest:
ansible_python_interpreter: /usr/bin/python3
ansible_lint-fedora-rawhide:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: default

View File

@ -18,5 +18,9 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
group_vars:
all:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: fedora-latest

View File

@ -20,5 +20,9 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
group_vars:
all:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: fedora-rawhide

View File

@ -9,7 +9,7 @@ driver:
name: docker
platforms:
- name: ansible_lint-opensuse-leap
image: opensuse:leap
image: opensuse/leap
pre_build_image: yes
provisioner:
name: ansible

View File

@ -13,7 +13,7 @@ platforms:
- name: ansible_lint-debian
box: debian/stretch64
- name: ansible_lint-fedora
box: fedora/29-cloud-base
box: fedora/30-cloud-base
provisioner:
name: ansible
playbooks:
@ -21,5 +21,9 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
host_vars:
ansible_lint-fedora:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: vagrant

View File

@ -1 +1 @@
{install_date: 'Fri Jun 7 18:25:23 2019', version: 2.0.6}
{install_date: 'Mon Jul 22 11:30:47 2019', version: 2.0.6}

View File

@ -18,7 +18,7 @@
- name: create ara service
import_role:
name: robertdebock.development_environment.service
name: robertdebock.service
- name: find callback_plugins path
block:

View File

@ -19,9 +19,6 @@ env:
- version=">=2.7,<2.8" distro="centos-latest"
- version="" distro="centos-latest"
- version="devel" distro="centos-latest"
- version=">=2.7,<2.8" distro="debian-latest"
- version="" distro="debian-latest"
- version="devel" distro="debian-latest"
- version=">=2.7,<2.8" distro="debian-stable"
- version="" distro="debian-stable"
- version="devel" distro="debian-stable"
@ -56,7 +53,6 @@ matrix:
- env: version="devel" distro="archlinux" expectation="fail"
- env: version="devel" distro="centos-6" expectation="fail"
- env: version="devel" distro="centos-latest"
- env: version="devel" distro="debian-latest"
- env: version="devel" distro="debian-stable"
- env: version=">=2.7,<2.8" distro="debian-unstable"
- env: version="" distro="debian-unstable"

View File

@ -1,4 +1,10 @@
# Please contribute!
# Please contribute
You can really make a difference by:
- [Making an issue](https://help.github.com/articles/creating-an-issue/). A well described issue helps a lot.
- [Making a pull request](https://services.github.com/on-demand/github-cli/open-pull-request-github) when you see the error in code.
I'll try to help and take every contribution seriously.
It's a great opportunity for me to learn how you use the role and also an opportunity to get into the habit of contributing to open source software.

View File

@ -1,14 +1,15 @@
atom
=========
[![Build Status](https://travis-ci.org/robertdebock/ansible-role-atom.svg?branch=master)](https://travis-ci.org/robertdebock/ansible-role-atom)
<img src="https://docs.ansible.com/ansible-tower/3.2.4/html_ja/installandreference/_static/images/logo_invert.png" width="10%" height="10%" alt="Ansible logo" align="right"/>
<a href="https://travis-ci.org/robertdebock/ansible-role-atom"><img src="https://travis-ci.org/robertdebock/ansible-role-atom.svg?branch=master" alt="Build status" align="left"/></a>
Install atom on your system.
Example Playbook
----------------
This example is taken from `molecule/default/playbook.yml`:
This example is taken from `molecule/resources/playbook.yml`:
```yaml
---
- name: Converge
@ -20,7 +21,7 @@ This example is taken from `molecule/default/playbook.yml`:
- robertdebock.atom
```
The machine you are running this on, may need to be prepared. Tests have been done on machines prepared by this playbook:
The machine you are running this on, may need to be prepared.
```yaml
---
- name: Prepare
@ -47,7 +48,7 @@ Requirements
------------
- Access to a repository containing packages, likely on the internet.
- A recent version of Ansible. (Tests run on the last 3 release of Ansible.)
- A recent version of Ansible. (Tests run on the current, previous and next release of Ansible.)
The following roles can be installed to ensure all requirements are met, using `ansible-galaxy install -r requirements.yml`:
@ -71,14 +72,13 @@ Compatibility
This role has been tested against the following distributions and Ansible version:
|distribution|ansible 2.6|ansible 2.7|ansible devel|
|distribution|ansible 2.7|ansible 2.8|ansible devel|
|------------|-----------|-----------|-------------|
|alpine-edge*|no|no|no*|
|alpine-latest|no|no|no*|
|archlinux|no|no|no*|
|centos-6|no|no|no*|
|centos-latest|yes|yes|yes*|
|debian-latest|yes|yes|yes*|
|debian-stable|yes|yes|yes*|
|debian-unstable*|yes|yes|yes*|
|fedora-latest|yes|yes|yes*|
@ -97,26 +97,16 @@ Testing
If you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-atom/issues)
To test this role locally please use [Molecule](https://github.com/metacloud/molecule):
To test this role locally please use [Molecule](https://github.com/ansible/molecule):
```
pip install molecule
molecule test
```
To test on Amazon EC2, configure [~/.aws/credentials](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html) and `export AWS_REGION=eu-central-1` before running `molecule test --scenario-name ec2`.
To test on Amazon EC2, configure [~/.aws/credentials](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html) and set a region using `export AWS_REGION=eu-central-1` before running `molecule test --scenario-name ec2`.
There are many specific scenarios available, please have a look in the `molecule/` directory.
Run the [ansible-galaxy](https://github.com/ansible/galaxy-lint-rules) and [my](https://github.com/robertdebock/ansible-lint-rules) lint rules if you want your change to be merges:
```shell
git clone https://github.com/ansible/ansible-lint.git /tmp/ansible-lint
ansible-lint -r /tmp/ansible-lint/lib/ansiblelint/rules .
git clone https://github.com/robertdebock/ansible-lint /tmp/my-ansible-lint
ansible-lint -r /tmp/my-ansible-lint/rules .
```
License
-------
@ -126,4 +116,4 @@ Apache-2.0
Author Information
------------------
[Robert de Bock](https://robertdebock.nl/) <robert@meinit.nl>
[Robert de Bock](https://robertdebock.nl/)

View File

@ -1 +1 @@
{install_date: 'Fri Jun 7 18:25:26 2019', version: 2.0.2}
{install_date: 'Mon Jul 22 11:30:51 2019', version: 2.0.5}

View File

@ -25,9 +25,6 @@ platforms:
- name: atom-centos-latest
image: centos:latest
pre_build_image: yes
- name: atom-debian-latest
image: debian:latest
pre_build_image: yes
- name: atom-debian-stable
image: debian:stable
pre_build_image: yes
@ -41,7 +38,7 @@ platforms:
image: fedora:rawhide
pre_build_image: yes
- name: atom-opensuse-leap
image: opensuse:leap
image: opensuse/leap
pre_build_image: yes
- name: atom-ubuntu-latest
image: ubuntu:latest
@ -59,5 +56,11 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
host_vars:
atom-fedora-latest:
ansible_python_interpreter: /usr/bin/python3
atom-fedora-rawhide:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: default

View File

@ -18,5 +18,9 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
group_vars:
all:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: fedora-latest

View File

@ -20,5 +20,9 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
group_vars:
all:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: fedora-rawhide

View File

@ -9,7 +9,7 @@ driver:
name: docker
platforms:
- name: atom-opensuse-leap
image: opensuse:leap
image: opensuse/leap
pre_build_image: yes
provisioner:
name: ansible

View File

@ -13,7 +13,7 @@ platforms:
- name: atom-debian
box: debian/stretch64
- name: atom-fedora
box: fedora/29-cloud-base
box: fedora/30-cloud-base
provisioner:
name: ansible
playbooks:
@ -21,5 +21,9 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
host_vars:
atom-fedora:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: vagrant

View File

@ -19,9 +19,6 @@ env:
- version=">=2.7,<2.8" distro="centos-latest"
- version="" distro="centos-latest"
- version="devel" distro="centos-latest"
- version=">=2.7,<2.8" distro="debian-latest"
- version="" distro="debian-latest"
- version="devel" distro="debian-latest"
- version=">=2.7,<2.8" distro="debian-stable"
- version="" distro="debian-stable"
- version="devel" distro="debian-stable"
@ -43,6 +40,12 @@ env:
- version=">=2.7,<2.8" distro="opensuse-leap"
- version="" distro="opensuse-leap"
- version="devel" distro="opensuse-leap"
# - version=">=2.7,<2.8" distro="redhat-7"
# - version="" distro="redhat-7"
# - version="devel" distro="redhat-7"
# - version=">=2.7,<2.8" distro="redhat-latest"
# - version="" distro="redhat-latest"
# - version="devel" distro="redhat-latest"
- version=">=2.7,<2.8" distro="ubuntu-rolling"
- version="" distro="ubuntu-rolling"
- version="devel" distro="ubuntu-rolling"
@ -62,7 +65,6 @@ matrix:
- env: version="devel" distro="archlinux"
- env: version="devel" distro="centos-6"
- env: version="devel" distro="centos-latest"
- env: version="devel" distro="debian-latest"
- env: version="devel" distro="debian-stable"
- env: version=">=2.7,<2.8" distro="debian-unstable"
- env: version="" distro="debian-unstable"
@ -74,6 +76,8 @@ matrix:
- env: version="devel" distro="gentoo"
- env: version="devel" distro="kali"
- env: version="devel" distro="opensuse-leap"
# - version="devel" distro="redhat-7"
# - version="devel" distro="redhat-latest"
- env: version="devel" distro="ubuntu-rolling"
- env: version=">=2.7,<2.8" distro="ubuntu-devel"
- env: version="" distro="ubuntu-devel"

View File

@ -1,4 +1,10 @@
# Please contribute!
# Please contribute
You can really make a difference by:
- [Making an issue](https://help.github.com/articles/creating-an-issue/). A well described issue helps a lot.
- [Making a pull request](https://services.github.com/on-demand/github-cli/open-pull-request-github) when you see the error in code.
I'll try to help and take every contribution seriously.
It's a great opportunity for me to learn how you use the role and also an opportunity to get into the habit of contributing to open source software.

View File

@ -1,7 +1,7 @@
bootstrap
=========
<img src="https://docs.ansible.com/ansible-tower/3.2.4/html_ja/installandreference/_static/images/logo_invert.png" width="10%" height="10%" alt="Ansible logo" align="left"/>
<img src="https://docs.ansible.com/ansible-tower/3.2.4/html_ja/installandreference/_static/images/logo_invert.png" width="10%" height="10%" alt="Ansible logo" align="right"/>
<a href="https://travis-ci.org/robertdebock/ansible-role-bootstrap"><img src="https://travis-ci.org/robertdebock/ansible-role-bootstrap.svg?branch=master" alt="Build status" align="left"/></a>
Prepare your system to be managed by Ansible.
@ -19,6 +19,10 @@ This example is taken from `molecule/resources/playbook.yml`:
roles:
- robertdebock.bootstrap
tasks:
- name: test connection
ping:
```
The machine you are running this on, may need to be prepared.
@ -56,7 +60,7 @@ Requirements
------------
- Access to a repository containing packages, likely on the internet.
- A recent version of Ansible. (Tests run on the last 3 release of Ansible.)
- A recent version of Ansible. (Tests run on the current, previous and next release of Ansible.)
The following roles can be installed to ensure all requirements are met, using `ansible-galaxy install -r requirements.yml`:
@ -85,7 +89,6 @@ This role has been tested against the following distributions and Ansible versio
|archlinux|yes|yes|yes*|
|centos-6|yes|yes|yes*|
|centos-latest|yes|yes|yes*|
|debian-latest|yes|yes|yes*|
|debian-stable|yes|yes|yes*|
|debian-unstable*|yes|yes|yes*|
|fedora-latest|yes|yes|yes*|
@ -112,20 +115,10 @@ pip install molecule
molecule test
```
To test on Amazon EC2, configure [~/.aws/credentials](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html) and `export AWS_REGION=eu-central-1` before running `molecule test --scenario-name ec2`.
To test on Amazon EC2, configure [~/.aws/credentials](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html) and set a region using `export AWS_REGION=eu-central-1` before running `molecule test --scenario-name ec2`.
There are many specific scenarios available, please have a look in the `molecule/` directory.
Run the [ansible-galaxy](https://github.com/ansible/galaxy-lint-rules) and [my](https://github.com/robertdebock/ansible-lint-rules) lint rules if you want your change to be merges:
```shell
git clone https://github.com/ansible/ansible-lint.git /tmp/ansible-lint
ansible-lint -r /tmp/ansible-lint/lib/ansiblelint/rules .
git clone https://github.com/robertdebock/ansible-lint /tmp/my-ansible-lint
ansible-lint -r /tmp/my-ansible-lint/rules .
```
License
-------
@ -135,4 +128,4 @@ Apache-2.0
Author Information
------------------
Robert de Bock
[Robert de Bock](https://robertdebock.nl/)

View File

@ -3,3 +3,8 @@
- name: gather facts
setup:
become: no
- name: add community repository for apk
lineinfile:
path: /etc/apk/repositories
line: "{{ bootstrap_alpine_community_repo }}"

View File

@ -1 +1 @@
{install_date: 'Fri Jun 7 18:25:31 2019', version: 3.1.2}
{install_date: 'Mon Jul 22 11:30:55 2019', version: 3.4.2}

View File

@ -1,21 +0,0 @@
---
dependency:
name: galaxy
options:
role-file: requirements.yml
lint:
name: yamllint
driver:
name: docker
platforms:
- name: bootstrap-debian-latest
image: debian:latest
pre_build_image: yes
provisioner:
name: ansible
playbooks:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
scenario:
name: debian-latest

View File

@ -25,9 +25,6 @@ platforms:
- name: bootstrap-centos-latest
image: centos:latest
pre_build_image: yes
- name: bootstrap-debian-latest
image: debian:latest
pre_build_image: yes
- name: bootstrap-debian-stable
image: debian:stable
pre_build_image: yes
@ -40,9 +37,24 @@ platforms:
- name: bootstrap-fedora-rawhide
image: fedora:rawhide
pre_build_image: yes
registry:
url: registry.fedoraproject.org
- name: bootstrap-opensuse-leap
image: opensuse:leap
image: opensuse/leap
pre_build_image: yes
- name: bootstrap-rhel-7
image: ubi7/ubi
pre_build_image: yes
registry:
url: registry.access.redhat.com
credentials:
username: $registryredhatiousername
password: $registryredhatiopassword
- name: bootstrap-rhel-latest
image: ubi8/ubi
pre_build_image: yes
registry:
url: registry.access.redhat.com
- name: bootstrap-ubuntu-latest
image: ubuntu:latest
pre_build_image: yes
@ -58,5 +70,11 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
host_vars:
bootstrap-fedora-latest:
ansible_python_interpreter: /usr/bin/python3
bootstrap-fedora-rawhide:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: default

View File

@ -9,7 +9,7 @@ driver:
name: docker
platforms:
- name: bootstrap-opensuse-leap
image: opensuse:leap
image: opensuse/leap
pre_build_image: yes
provisioner:
name: ansible

View File

@ -8,15 +8,19 @@ lint:
driver:
name: docker
platforms:
- name: ansible_lint-debian-latest
image: debian:latest
- name: bootstrap-rhel-7
image: ubi7/ubi
pre_build_image: yes
registry:
url: registry.access.redhat.com
credentials:
username: $registryredhatiousername
password: $registryredhatiopassword
provisioner:
name: ansible
playbooks:
prepare: ../resources/prepare.yml
converge: ../resources/playbook.yml
lint:
name: ansible-lint
scenario:
name: debian-latest
name: redhat-7

View File

@ -8,15 +8,19 @@ lint:
driver:
name: docker
platforms:
- name: atom-debian-latest
image: debian:latest
- name: bootstrap-rhel-latest
image: ubi8/ubi
pre_build_image: yes
registry:
url: registry.access.redhat.com
credentials:
username: $registryredhatiousername
password: $registryredhatiopassword
provisioner:
name: ansible
playbooks:
prepare: ../resources/prepare.yml
converge: ../resources/playbook.yml
lint:
name: ansible-lint
scenario:
name: debian-latest
name: redhat-latest

View File

@ -6,3 +6,7 @@
roles:
- ansible-role-bootstrap
tasks:
- name: test connection
ping:

View File

@ -3,26 +3,25 @@ dependency:
name: galaxy
options:
role-file: requirements.yml
lint:
name: yamllint
driver:
name: docker
lint:
name: yamllint
platforms:
- name: users-fedora-rawhide
image: fedora:rawhide
- name: bootstrap-rhel-latest
image: ubi8/ubi
pre_build_image: yes
registry:
url: registry.fedoraproject.org
url: registry.access.redhat.com
provisioner:
name: ansible
inventory:
host_vars:
users-fedora-rawhide:
ansible_python_interpreter: /usr/bin/python3
playbooks:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
group_vars:
all:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: fedora-rawhide
verifier:
name: goss
lint:
name: yamllint
name: rhel-latest

View File

@ -13,12 +13,16 @@ platforms:
- name: bootstrap-debian
box: debian/stretch64
- name: bootstrap-fedora
box: fedora/29-cloud-base
box: fedora/30-cloud-base
provisioner:
name: ansible
playbooks:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
host_vars:
bootstrap-fedora:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: vagrant

View File

@ -0,0 +1,101 @@
---
- name: install using registered package manager
remote_user: "{{ bootstrap_remote_user | default(omit) }}"
block:
- name: install software with apk
raw: "apk update ; apk add {{ bootstrap_apk_packages }}"
when:
- apk.rc == 0
register: apkresult
changed_when:
- "'Installing' in apkresult.stdout"
until: apkresult is succeeded
retries: "{{ bootstrap_retries }}"
notify:
- add community repository for apk
- name: install software with apt-get
raw: "apt-get update ; LANG=C apt-get -y install {{ bootstrap_apt_packages }}"
when:
- apt_get.rc == 0
- zypper.rc != 0
register: apt_getresult
changed_when:
- "' 0 newly installed' not in apt_getresult.stdout"
until: apt_getresult is succeeded
retries: "{{ bootstrap_retries }}"
- name: install software with dnf
raw: "LANG=C dnf -y install {{ bootstrap_dnf_packages }}"
when:
- dnf.rc == 0
register: dnfresult
changed_when:
- "'Nothing' not in dnfresult.stdout"
until: dnfresult is succeeded
retries: "{{ bootstrap_retries }}"
- name: install software with emerge
raw: "{{ bootstrap_emerge_command }}"
when:
- emerge.rc == 0
register: emergeresult
changed_when:
- "'changed' in emergeresult.stdout"
until: emergeresult is succeeded
retries: "{{ bootstrap_retries }}"
- name: install software with pacman
raw: "pacman -Sy ; pacman -T {{ bootstrap_pacman_packages }} || LANG=C pacman -S --noconfirm {{ bootstrap_pacman_packages }}"
when:
- pacman.rc == 0
register: pacmanresult
changed_when:
- "' installing python' in pacmanresult.stdout"
until: pacmanresult is succeeded
retries: "{{ bootstrap_retries }}"
- name: install software with pkg
raw: >
ASSUME_ALWAYS_YES=YES LANG=C
pkg install {{ bootstrap_pkg_packages }}
; ln -s /usr/local/bin/python /usr/bin/python
|| exit 0
when:
- pkg.rc == 0
register: pkgresult
changed_when:
- "'Extracting python' in pkgresult.stdout"
until: pkgresult is succeeded
retries: "{{ bootstrap_retries }}"
- name: install software with pkg_add
raw: LANG=C pkg_add -Iz {{ bootstrap_pkg_add_packages }}
when:
- pkg_add.rc == 0
register: pkg_add_getresult
changed_when:
- "': ok' in pkg_add_getresult.stdout"
until: pkg_add_getresult is succeeded
retries: "{{ bootstrap_retries }}"
- name: install software with yum
raw: "LANG=C yum -y install {{ bootstrap_yum_packages }}"
when:
- yum.rc == 0
register: yumresult
changed_when:
- "'Nothing' not in yumresult.stdout"
until: yumresult is succeeded
retries: "{{ bootstrap_retries }}"
- name: install software with zypper
raw: "LANG=C zypper -n install {{ bootstrap_zypper_packages }}"
when:
- zypper.rc == 0
register: zypperresult
changed_when:
- "'Nothing' not in zypperresult.stdout"
failed_when: no
until: zypperresult is succeeded
retries: "{{ bootstrap_retries }}"

View File

@ -9,186 +9,27 @@
when:
- ansible_connection is defined
- ansible_connection != "docker"
- bootstrap_wait_for_host
- bootstrap_wait_for_host | bool
- name: test connection
- name: test connection, otherwise register package manager
block:
- name: test connection (allowed to fail)
wait_for_connection:
timeout: "{{ bootstrap_timeout }}"
register: bootstrap_connect
changed_when: no
ignore_errors: yes
- name: find package manager
remote_user: "{{ bootstrap_remote_user | default(omit) }}"
become: no
check_mode: no
block:
rescue:
- name: register package manager
include_tasks: register.yml
- name: register apk
raw: apk --version
register: apk
changed_when: no
failed_when: no
- name: register apt_get
raw: apt-get --version
register: apt_get
changed_when: no
failed_when: no
- name: register dnf
raw: dnf --version
register: dnf
changed_when: no
failed_when: no
- name: register emerge
raw: emerge --version
register: emerge
changed_when: no
failed_when: no
- name: register pacman
raw: pacman --version
register: pacman
changed_when: no
failed_when: no
- name: register pkg
raw: pkg --version
register: pkg
changed_when: no
failed_when: no
- name: register pkg_add
raw: pkg_info
register: pkg_add
changed_when: no
failed_when: no
- name: register yum
raw: yum --version
register: yum
changed_when: no
failed_when: no
- name: register zypper
raw: zypper --version
register: zypper
changed_when: no
failed_when: no
- name: install using found package manager
remote_user: "{{ bootstrap_remote_user | default(omit) }}"
block:
- name: install software with apk
raw: "apk update ; apk add {{ bootstrap_apk_packages }}"
when:
- apk.rc == 0
register: apkresult
changed_when:
- "'Installing' in apkresult.stdout"
until: apkresult is succeeded
retries: "{{ bootstrap_retries }}"
- name: install software with apt-get
raw: "apt-get update ; apt-get -y install {{ bootstrap_apt_packages }}"
when:
- apt_get.rc == 0
- zypper.rc != 0
register: apt_getresult
changed_when:
- "' 0 newly installed' not in apt_getresult.stdout"
until: apt_getresult is succeeded
retries: "{{ bootstrap_retries }}"
- name: install software with dnf
raw: "dnf -y install {{ bootstrap_dnf_packages }}"
when:
- dnf.rc == 0
register: dnfresult
changed_when:
- "'Nothing' not in dnfresult.stdout"
until: dnfresult is succeeded
retries: "{{ bootstrap_retries }}"
- name: install software with emerge
raw: "{{ bootstrap_emerge_command }}"
when:
- emerge.rc == 0
register: emergeresult
changed_when:
- "'changed' in emergeresult.stdout"
until: emergeresult is succeeded
retries: "{{ bootstrap_retries }}"
- name: install software with pacman
raw: "pacman -Sy ; pacman -T {{ bootstrap_pacman_packages }} || pacman -S --noconfirm {{ bootstrap_pacman_packages }}"
when:
- pacman.rc == 0
register: pacmanresult
changed_when:
- "' installing python' in pacmanresult.stdout"
until: pacmanresult is succeeded
retries: "{{ bootstrap_retries }}"
- name: install software with pkg
raw: >
ASSUME_ALWAYS_YES=YES
pkg install {{ bootstrap_pkg_packages }}
; ln -s /usr/local/bin/python /usr/bin/python
|| exit 0
when:
- pkg.rc == 0
register: pkgresult
changed_when:
- "'Extracting python' in pkgresult.stdout"
until: pkgresult is succeeded
retries: "{{ bootstrap_retries }}"
- name: install software with pkg_add
raw: pkg_add -Iz {{ bootstrap_pkg_add_packages }}
when:
- pkg_add.rc == 0
register: pkg_add_getresult
changed_when:
- "': ok' in pkg_add_getresult.stdout"
until: pkg_add_getresult is succeeded
retries: "{{ bootstrap_retries }}"
- name: install software with yum
raw: "yum -y install {{ bootstrap_yum_packages }}"
when:
- yum.rc == 0
register: yumresult
changed_when:
- "'Nothing' not in yumresult.stdout"
until: yumresult is succeeded
retries: "{{ bootstrap_retries }}"
- name: install software with zypper
raw: "zypper -n install {{ bootstrap_zypper_packages }}"
when:
- zypper.rc == 0
register: zypperresult
changed_when:
- "'Nothing' not in zypperresult.stdout"
failed_when: no
until: zypperresult is succeeded
retries: "{{ bootstrap_retries }}"
- name: install using registered package manager
include_tasks: install.yml
- name: gather facts
setup:
become: no
- name: add community repository for alpine
lineinfile:
path: /etc/apk/repositories
line: "{{ bootstrap_alpine_community_repo }}"
when:
- ansible_distribution == "Alpine"
- name: install bootstrap packages
package:
name: "{{ bootstrap_packages }}"

View File

@ -0,0 +1,60 @@
---
- name: register package manager
remote_user: "{{ bootstrap_remote_user | default(omit) }}"
become: no
check_mode: no
block:
- name: register apk
raw: apk --version
register: apk
changed_when: no
failed_when: no
- name: register apt_get
raw: apt-get --version
register: apt_get
changed_when: no
failed_when: no
- name: register dnf
raw: dnf --version
register: dnf
changed_when: no
failed_when: no
- name: register emerge
raw: emerge --version
register: emerge
changed_when: no
failed_when: no
- name: register pacman
raw: pacman --version
register: pacman
changed_when: no
failed_when: no
- name: register pkg
raw: pkg --version
register: pkg
changed_when: no
failed_when: no
- name: register pkg_add
raw: pkg_info
register: pkg_add
changed_when: no
failed_when: no
- name: register yum
raw: yum --version
register: yum
changed_when: no
failed_when: no
- name: register zypper
raw: zypper --version
register: zypper
changed_when: no
failed_when: no

View File

@ -7,7 +7,7 @@ bootstrap_remote_user: "{{ (ansible_user | default(omit, true)) if bootstrap_con
# module, separated by a space.
bootstrap_apk_packages: python sudo
bootstrap_apt_packages: python sudo
bootstrap_dnf_packages: python sudo
bootstrap_dnf_packages: python3 sudo
bootstrap_emerge_packages: python sudo gentoolkit
bootstrap_pacman_packages: python sudo
bootstrap_pkg_add_packages: python-3* sudo--
@ -63,12 +63,20 @@ _bootstrap_packages:
- python
- python-xml
- sudo
Ubuntu:
- iproute2
RedHat-7:
- iproute
- python
- sudo
RedHat:
- iproute
- python3
- sudo
Ubuntu:
- iproute2
- python3
- sudo
bootstrap_packages: "{{ _bootstrap_packages[ansible_distribution ~ '-' ~ bootstrap_ansible_distribution_major_version] | default(_bootstrap_packages[ansible_distribution] | default(_bootstrap_packages['default'])) }}"
bootstrap_packages: "{{ _bootstrap_packages[ansible_distribution ~ '-' ~ ansible_distribution_major_version] | default(_bootstrap_packages[ansible_distribution] | default(_bootstrap_packages['default'])) }}"
# A dictionary based on Ansible facts `ansible_distribution` and
# `ansible_distribution_major_version` containing a list of packages. The
@ -102,11 +110,13 @@ _bootstrap_stable_packages:
openSUSE Leap:
- acl
- ca-certificates
RedHat:
- acl
Ubuntu:
- acl
- ca-certificates
- python-apt
- python-simplejson
- python3-apt
- python3-simplejson
bootstrap_stable_packages: "{{ _bootstrap_stable_packages[ansible_distribution ~ '-' ~ bootstrap_ansible_distribution_major_version] | default(_bootstrap_stable_packages[ansible_distribution] | default(_bootstrap_stable_packages['default'])) }}"

View File

@ -19,9 +19,6 @@ env:
- version=">=2.7,<2.8" distro="centos-latest"
- version="" distro="centos-latest"
- version="devel" distro="centos-latest"
- version=">=2.7,<2.8" distro="debian-latest"
- version="" distro="debian-latest"
- version="devel" distro="debian-latest"
- version=">=2.7,<2.8" distro="debian-stable"
- version="" distro="debian-stable"
- version="devel" distro="debian-stable"
@ -56,7 +53,6 @@ matrix:
- env: version="devel" distro="archlinux"
- env: version="devel" distro="centos-6"
- env: version="devel" distro="centos-latest"
- env: version="devel" distro="debian-latest"
- env: version="devel" distro="debian-stable"
- env: version=">=2.7,<2.8" distro="debian-unstable"
- env: version="" distro="debian-unstable"

View File

@ -1,4 +1,10 @@
# Please contribute!
# Please contribute
You can really make a difference by:
- [Making an issue](https://help.github.com/articles/creating-an-issue/). A well described issue helps a lot.
- [Making a pull request](https://services.github.com/on-demand/github-cli/open-pull-request-github) when you see the error in code.
I'll try to help and take every contribution seriously.
It's a great opportunity for me to learn how you use the role and also an opportunity to get into the habit of contributing to open source software.

View File

@ -1,14 +1,15 @@
buildtools
=========
[![Build Status](https://travis-ci.org/robertdebock/ansible-role-buildtools.svg?branch=master)](https://travis-ci.org/robertdebock/ansible-role-buildtools)
<img src="https://docs.ansible.com/ansible-tower/3.2.4/html_ja/installandreference/_static/images/logo_invert.png" width="10%" height="10%" alt="Ansible logo" align="right"/>
<a href="https://travis-ci.org/robertdebock/ansible-role-buildtools"><img src="https://travis-ci.org/robertdebock/ansible-role-buildtools.svg?branch=master" alt="Build status" align="left"/></a>
Install buildtools on your system.
Example Playbook
----------------
This example is taken from `molecule/default/playbook.yml`:
This example is taken from `molecule/resources/playbook.yml`:
```yaml
---
- name: Converge
@ -18,17 +19,6 @@ This example is taken from `molecule/default/playbook.yml`:
roles:
- robertdebock.buildtools
```
The machine you are running this on, may need to be prepared. Tests have been done on machines prepared by this playbook:
```yaml
---
- name: Prepare
hosts: all
gather_facts: no
roles:
- robertdebock.bootstrap
tasks:
- name: run gcc
@ -37,6 +27,18 @@ The machine you are running this on, may need to be prepared. Tests have been do
creates: gcc.version
```
The machine you are running this on, may need to be prepared.
```yaml
---
- name: Prepare
hosts: all
gather_facts: no
become: yes
roles:
- robertdebock.bootstrap
```
Also see a [full explanation and example](https://robertdebock.nl/how-to-use-these-roles.html) on how to use these roles.
Role Variables
@ -52,7 +54,7 @@ Requirements
------------
- Access to a repository containing packages, likely on the internet.
- A recent version of Ansible. (Tests run on the last 3 release of Ansible.)
- A recent version of Ansible. (Tests run on the current, previous and next release of Ansible.)
The following roles can be installed to ensure all requirements are met, using `ansible-galaxy install -r requirements.yml`:
@ -76,14 +78,13 @@ Compatibility
This role has been tested against the following distributions and Ansible version:
|distribution|ansible 2.6|ansible 2.7|ansible devel|
|distribution|ansible 2.7|ansible 2.8|ansible devel|
|------------|-----------|-----------|-------------|
|alpine-edge*|yes|yes|yes*|
|alpine-latest|yes|yes|yes*|
|archlinux|yes|yes|yes*|
|centos-6|yes|yes|yes*|
|centos-latest|yes|yes|yes*|
|debian-latest|yes|yes|yes*|
|debian-stable|yes|yes|yes*|
|debian-unstable*|yes|yes|yes*|
|fedora-latest|yes|yes|yes*|
@ -102,26 +103,16 @@ Testing
If you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-buildtools/issues)
To test this role locally please use [Molecule](https://github.com/metacloud/molecule):
To test this role locally please use [Molecule](https://github.com/ansible/molecule):
```
pip install molecule
molecule test
```
To test on Amazon EC2, configure [~/.aws/credentials](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html) and `export AWS_REGION=eu-central-1` before running `molecule test --scenario-name ec2`.
To test on Amazon EC2, configure [~/.aws/credentials](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html) and set a region using `export AWS_REGION=eu-central-1` before running `molecule test --scenario-name ec2`.
There are many specific scenarios available, please have a look in the `molecule/` directory.
Run the [ansible-galaxy](https://github.com/ansible/galaxy-lint-rules) and [my](https://github.com/robertdebock/ansible-lint-rules) lint rules if you want your change to be merges:
```shell
git clone https://github.com/ansible/ansible-lint.git /tmp/ansible-lint
ansible-lint -r /tmp/ansible-lint/lib/ansiblelint/rules .
git clone https://github.com/robertdebock/ansible-lint /tmp/my-ansible-lint
ansible-lint -r /tmp/my-ansible-lint/rules .
```
License
-------
@ -131,4 +122,4 @@ Apache-2.0
Author Information
------------------
[Robert de Bock](https://robertdebock.nl/) <robert@meinit.nl>
[Robert de Bock](https://robertdebock.nl/)

View File

@ -1 +1 @@
{install_date: 'Fri Jun 7 18:25:34 2019', version: 2.0.4}
{install_date: 'Mon Jul 22 11:30:58 2019', version: 2.0.7}

View File

@ -1,22 +0,0 @@
---
dependency:
name: galaxy
options:
role-file: requirements.yml
lint:
name: yamllint
driver:
name: docker
platforms:
- name: buildtools-debian-latest
image: debian:latest
pre_build_image: yes
provisioner:
name: ansible
playbooks:
prepare: ../resources/prepare.yml
converge: ../resources/playbook.yml
lint:
name: ansible-lint
scenario:
name: debian-latest

View File

@ -25,9 +25,6 @@ platforms:
- name: buildtools-centos-latest
image: centos:latest
pre_build_image: yes
- name: buildtools-debian-latest
image: debian:latest
pre_build_image: yes
- name: buildtools-debian-stable
image: debian:stable
pre_build_image: yes
@ -41,7 +38,7 @@ platforms:
image: fedora:rawhide
pre_build_image: yes
- name: buildtools-opensuse-leap
image: opensuse:leap
image: opensuse/leap
pre_build_image: yes
- name: buildtools-ubuntu-latest
image: ubuntu:latest
@ -59,5 +56,11 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
host_vars:
buildtools-fedora-latest:
ansible_python_interpreter: /usr/bin/python3
buildtools-fedora-rawhide:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: default

View File

@ -18,5 +18,9 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
group_vars:
all:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: fedora-latest

View File

@ -20,5 +20,9 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
group_vars:
all:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: fedora-rawhide

View File

@ -9,7 +9,7 @@ driver:
name: docker
platforms:
- name: buildtools-opensuse-leap
image: opensuse:leap
image: opensuse/leap
pre_build_image: yes
provisioner:
name: ansible

View File

@ -13,7 +13,7 @@ platforms:
- name: buildtools-debian
box: debian/stretch64
- name: buildtools-fedora
box: fedora/29-cloud-base
box: fedora/30-cloud-base
provisioner:
name: ansible
playbooks:
@ -21,5 +21,9 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
host_vars:
buildtools-fedora:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: vagrant

View File

@ -48,7 +48,6 @@ _buildtools_packages:
- libaio-devel
- libapparmor-devel
- libdb-4_8-devel
- libgcj-devel
- libosip2-devel
- libstdc++-devel
- openldap2-devel

View File

@ -19,9 +19,6 @@ env:
- version=">=2.7,<2.8" distro="centos-latest"
- version="" distro="centos-latest"
- version="devel" distro="centos-latest"
- version=">=2.7,<2.8" distro="debian-latest"
- version="" distro="debian-latest"
- version="devel" distro="debian-latest"
- version=">=2.7,<2.8" distro="debian-stable"
- version="" distro="debian-stable"
- version="devel" distro="debian-stable"
@ -56,7 +53,6 @@ matrix:
- env: version="devel" distro="archlinux"
- env: version="devel" distro="centos-6"
- env: version="devel" distro="centos-latest"
- env: version="devel" distro="debian-latest"
- env: version="devel" distro="debian-stable"
- env: version=">=2.7,<2.8" distro="debian-unstable"
- env: version="" distro="debian-unstable"

View File

@ -1,4 +1,10 @@
# Please contribute!
# Please contribute
You can really make a difference by:
- [Making an issue](https://help.github.com/articles/creating-an-issue/). A well described issue helps a lot.
- [Making a pull request](https://services.github.com/on-demand/github-cli/open-pull-request-github) when you see the error in code.
I'll try to help and take every contribution seriously.
It's a great opportunity for me to learn how you use the role and also an opportunity to get into the habit of contributing to open source software.

View File

@ -1,14 +1,15 @@
common
=========
[![Build Status](https://travis-ci.org/robertdebock/ansible-role-common.svg?branch=master)](https://travis-ci.org/robertdebock/ansible-role-common)
<img src="https://docs.ansible.com/ansible-tower/3.2.4/html_ja/installandreference/_static/images/logo_invert.png" width="10%" height="10%" alt="Ansible logo" align="right"/>
<a href="https://travis-ci.org/robertdebock/ansible-role-common"><img src="https://travis-ci.org/robertdebock/ansible-role-common.svg?branch=master" alt="Build status" align="left"/></a>
The purpose of this role is to configure common things on your system.
Example Playbook
----------------
This example is taken from `molecule/default/playbook.yml`:
This example is taken from `molecule/resources/playbook.yml`:
```yaml
---
- name: Converge
@ -20,7 +21,7 @@ This example is taken from `molecule/default/playbook.yml`:
- robertdebock.common
```
The machine you are running this on, may need to be prepared. Tests have been done on machines prepared by this playbook:
The machine you are running this on, may need to be prepared.
```yaml
---
- name: Prepare
@ -61,7 +62,7 @@ Requirements
------------
- Access to a repository containing packages, likely on the internet.
- A recent version of Ansible. (Tests run on the last 3 release of Ansible.)
- A recent version of Ansible. (Tests run on the current, previous and next release of Ansible.)
The following roles can be installed to ensure all requirements are met, using `ansible-galaxy install -r requirements.yml`:
@ -86,14 +87,13 @@ Compatibility
This role has been tested against the following distributions and Ansible version:
|distribution|ansible 2.6|ansible 2.7|ansible devel|
|distribution|ansible 2.7|ansible 2.8|ansible devel|
|------------|-----------|-----------|-------------|
|alpine-edge*|yes|yes|yes*|
|alpine-latest|yes|yes|yes*|
|archlinux|yes|yes|yes*|
|centos-6|yes|yes|yes*|
|centos-latest|yes|yes|yes*|
|debian-latest|yes|yes|yes*|
|debian-stable|yes|yes|yes*|
|debian-unstable*|yes|yes|yes*|
|fedora-latest|yes|yes|yes*|
@ -112,26 +112,16 @@ Testing
If you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-common/issues)
To test this role locally please use [Molecule](https://github.com/metacloud/molecule):
To test this role locally please use [Molecule](https://github.com/ansible/molecule):
```
pip install molecule
molecule test
```
To test on Amazon EC2, configure [~/.aws/credentials](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html) and `export AWS_REGION=eu-central-1` before running `molecule test --scenario-name ec2`.
To test on Amazon EC2, configure [~/.aws/credentials](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html) and set a region using `export AWS_REGION=eu-central-1` before running `molecule test --scenario-name ec2`.
There are many specific scenarios available, please have a look in the `molecule/` directory.
Run the [ansible-galaxy](https://github.com/ansible/galaxy-lint-rules) and [my](https://github.com/robertdebock/ansible-lint-rules) lint rules if you want your change to be merges:
```shell
git clone https://github.com/ansible/ansible-lint.git /tmp/ansible-lint
ansible-lint -r /tmp/ansible-lint/lib/ansiblelint/rules .
git clone https://github.com/robertdebock/ansible-lint /tmp/my-ansible-lint
ansible-lint -r /tmp/my-ansible-lint/rules .
```
License
-------
@ -141,4 +131,4 @@ Apache-2.0
Author Information
------------------
[Robert de Bock](https://robertdebock.nl/) <robert@meinit.nl>
[Robert de Bock](https://robertdebock.nl/)

View File

@ -3,3 +3,8 @@
- name: gather facts
setup:
become: no
- name: reload network manager
service:
name: NetworkManager
state: reloaded

View File

@ -1 +1 @@
{install_date: 'Fri Jun 7 18:25:37 2019', version: 3.0.2}
{install_date: 'Mon Jul 22 11:31:01 2019', version: 3.0.6}

View File

@ -1,22 +0,0 @@
---
dependency:
name: galaxy
options:
role-file: requirements.yml
lint:
name: yamllint
driver:
name: docker
platforms:
- name: common-debian-latest
image: debian:latest
pre_build_image: yes
provisioner:
name: ansible
playbooks:
prepare: ../resources/prepare.yml
converge: ../resources/playbook.yml
lint:
name: ansible-lint
scenario:
name: debian-latest

View File

@ -25,9 +25,6 @@ platforms:
- name: common-centos-latest
image: centos:latest
pre_build_image: yes
- name: common-debian-latest
image: debian:latest
pre_build_image: yes
- name: common-debian-stable
image: debian:stable
pre_build_image: yes
@ -41,7 +38,7 @@ platforms:
image: fedora:rawhide
pre_build_image: yes
- name: common-opensuse-leap
image: opensuse:leap
image: opensuse/leap
pre_build_image: yes
- name: common-ubuntu-latest
image: ubuntu:latest
@ -59,5 +56,11 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
host_vars:
common-fedora-latest:
ansible_python_interpreter: /usr/bin/python3
common-fedora-rawhide:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: default

View File

@ -18,5 +18,9 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
group_vars:
all:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: fedora-latest

View File

@ -20,5 +20,9 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
group_vars:
all:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: fedora-rawhide

View File

@ -9,7 +9,7 @@ driver:
name: docker
platforms:
- name: common-opensuse-leap
image: opensuse:leap
image: opensuse/leap
pre_build_image: yes
provisioner:
name: ansible

View File

@ -13,7 +13,7 @@ platforms:
- name: common-debian
box: debian/stretch64
- name: common-fedora
box: fedora/29-cloud-base
box: fedora/30-cloud-base
provisioner:
name: ansible
playbooks:
@ -21,5 +21,9 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
host_vars:
common-fedora:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: vagrant

View File

@ -35,6 +35,7 @@
when:
- common_check_for_network_manager.stat.exists
notify:
- reload network manager
- gather facts
- name: flush handlers
@ -52,7 +53,7 @@
name: robertdebock.reboot
when:
- set_hostname.changed
- common_reboot
- common_reboot | bool
tags:
- skip_ansible_lint

View File

@ -19,9 +19,6 @@ env:
- version=">=2.7,<2.8" distro="centos-latest"
- version="" distro="centos-latest"
- version="devel" distro="centos-latest"
- version=">=2.7,<2.8" distro="debian-latest"
- version="" distro="debian-latest"
- version="devel" distro="debian-latest"
- version=">=2.7,<2.8" distro="debian-stable"
- version="" distro="debian-stable"
- version="devel" distro="debian-stable"
@ -56,7 +53,6 @@ matrix:
- env: version="devel" distro="archlinux"
- env: version="devel" distro="centos-6" expectation="fail"
- env: version="devel" distro="centos-latest"
- env: version="devel" distro="debian-latest"
- env: version="devel" distro="debian-stable"
- env: version=">=2.7,<2.8" distro="debian-unstable"
- env: version="" distro="debian-unstable"

View File

@ -1,4 +1,10 @@
# Please contribute!
# Please contribute
You can really make a difference by:
- [Making an issue](https://help.github.com/articles/creating-an-issue/). A well described issue helps a lot.
- [Making a pull request](https://services.github.com/on-demand/github-cli/open-pull-request-github) when you see the error in code.
I'll try to help and take every contribution seriously.
It's a great opportunity for me to learn how you use the role and also an opportunity to get into the habit of contributing to open source software.

View File

@ -1,14 +1,15 @@
docker
=========
[![Build Status](https://travis-ci.org/robertdebock/ansible-role-docker.svg?branch=master)](https://travis-ci.org/robertdebock/ansible-role-docker)
<img src="https://docs.ansible.com/ansible-tower/3.2.4/html_ja/installandreference/_static/images/logo_invert.png" width="10%" height="10%" alt="Ansible logo" align="right"/>
<a href="https://travis-ci.org/robertdebock/ansible-role-docker"><img src="https://travis-ci.org/robertdebock/ansible-role-docker.svg?branch=master" alt="Build status" align="left"/></a>
Install and configure Docker (non-CE) on your system.
Example Playbook
----------------
This example is taken from `molecule/default/playbook.yml`:
This example is taken from `molecule/resources/playbook.yml`:
```yaml
---
- name: Converge
@ -30,12 +31,13 @@ This example is taken from `molecule/default/playbook.yml`:
- ansible_virtualization_type != "docker"
```
The machine you are running this on, may need to be prepared. Tests have been done on machines prepared by this playbook:
The machine you are running this on, may need to be prepared.
```yaml
---
- name: Prepare
hosts: all
gather_facts: no
become: yes
roles:
- robertdebock.bootstrap
@ -58,7 +60,7 @@ Requirements
------------
- Access to a repository containing packages, likely on the internet.
- A recent version of Ansible. (Tests run on the last 3 release of Ansible.)
- A recent version of Ansible. (Tests run on the current, previous and next release of Ansible.)
The following roles can be installed to ensure all requirements are met, using `ansible-galaxy install -r requirements.yml`:
@ -84,14 +86,13 @@ Compatibility
This role has been tested against the following distributions and Ansible version:
|distribution|ansible 2.6|ansible 2.7|ansible devel|
|distribution|ansible 2.7|ansible 2.8|ansible devel|
|------------|-----------|-----------|-------------|
|alpine-edge*|yes|yes|yes*|
|alpine-latest|yes|yes|yes*|
|archlinux|yes|yes|yes*|
|centos-6|no|no|no*|
|centos-latest|yes|yes|yes*|
|debian-latest|yes|yes|yes*|
|debian-stable|yes|yes|yes*|
|debian-unstable*|yes|yes|yes*|
|fedora-latest|yes|yes|yes*|
@ -110,26 +111,16 @@ Testing
If you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-docker/issues)
To test this role locally please use [Molecule](https://github.com/metacloud/molecule):
To test this role locally please use [Molecule](https://github.com/ansible/molecule):
```
pip install molecule
molecule test
```
To test on Amazon EC2, configure [~/.aws/credentials](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html) and `export AWS_REGION=eu-central-1` before running `molecule test --scenario-name ec2`.
To test on Amazon EC2, configure [~/.aws/credentials](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html) and set a region using `export AWS_REGION=eu-central-1` before running `molecule test --scenario-name ec2`.
There are many specific scenarios available, please have a look in the `molecule/` directory.
Run the [ansible-galaxy](https://github.com/ansible/galaxy-lint-rules) and [my](https://github.com/robertdebock/ansible-lint-rules) lint rules if you want your change to be merges:
```shell
git clone https://github.com/ansible/ansible-lint.git /tmp/ansible-lint
ansible-lint -r /tmp/ansible-lint/lib/ansiblelint/rules .
git clone https://github.com/robertdebock/ansible-lint /tmp/my-ansible-lint
ansible-lint -r /tmp/my-ansible-lint/rules .
```
License
-------
@ -139,4 +130,4 @@ Apache-2.0
Author Information
------------------
[Robert de Bock](https://robertdebock.nl/) <robert@meinit.nl>
[Robert de Bock](https://robertdebock.nl/)

View File

@ -1 +1 @@
{install_date: 'Fri Jun 7 18:25:41 2019', version: 2.0.3}
{install_date: 'Mon Jul 22 11:31:03 2019', version: 2.1.1}

View File

@ -1,22 +0,0 @@
---
dependency:
name: galaxy
options:
role-file: requirements.yml
lint:
name: yamllint
driver:
name: docker
platforms:
- name: docker-debian-latest
image: debian:latest
pre_build_image: yes
provisioner:
name: ansible
playbooks:
prepare: ../resources/prepare.yml
converge: ../resources/playbook.yml
lint:
name: ansible-lint
scenario:
name: debian-latest

View File

@ -25,9 +25,6 @@ platforms:
- name: docker-centos-latest
image: centos:latest
pre_build_image: yes
- name: docker-debian-latest
image: debian:latest
pre_build_image: yes
- name: docker-debian-stable
image: debian:stable
pre_build_image: yes
@ -41,7 +38,7 @@ platforms:
image: fedora:rawhide
pre_build_image: yes
- name: docker-opensuse-leap
image: opensuse:leap
image: opensuse/leap
pre_build_image: yes
- name: docker-ubuntu-latest
image: ubuntu:latest
@ -59,5 +56,11 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
host_vars:
docker-fedora-latest:
ansible_python_interpreter: /usr/bin/python3
docker-fedora-rawhide:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: default

View File

@ -18,5 +18,9 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
group_vars:
all:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: fedora-latest

View File

@ -20,5 +20,9 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
group_vars:
all:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: fedora-rawhide

View File

@ -9,7 +9,7 @@ driver:
name: docker
platforms:
- name: docker-opensuse-leap
image: opensuse:leap
image: opensuse/leap
pre_build_image: yes
provisioner:
name: ansible

View File

@ -13,7 +13,7 @@ platforms:
- name: docker-debian
box: debian/stretch64
- name: docker-fedora
box: fedora/29-cloud-base
box: fedora/30-cloud-base
provisioner:
name: ansible
playbooks:
@ -21,5 +21,9 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
host_vars:
docker-fedora:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: vagrant

View File

@ -13,15 +13,21 @@ docker_requirements: "{{ _docker_requirements[ansible_distribution] | default(_d
_docker_packages:
default:
- docker
- docker-compose
Alpine:
- docker
CentOS:
- docker-io
- docker-compose
Ubuntu:
- docker.io
- docker-compose
docker_packages: "{{ _docker_packages[ansible_distribution] | default(_docker_packages['default']) }}"
docker_pip_packages:
- docker
- docker-compose
docker_service: docker

View File

@ -1,4 +1,10 @@
# Please contribute!
# Please contribute
You can really make a difference by:
- [Making an issue](https://help.github.com/articles/creating-an-issue/). A well described issue helps a lot.
- [Making a pull request](https://services.github.com/on-demand/github-cli/open-pull-request-github) when you see the error in code.
I'll try to help and take every contribution seriously.
It's a great opportunity for me to learn how you use the role and also an opportunity to get into the habit of contributing to open source software.

View File

@ -1,14 +1,15 @@
epel
=========
[![Build Status](https://travis-ci.org/robertdebock/ansible-role-epel.svg?branch=master)](https://travis-ci.org/robertdebock/ansible-role-epel)
<img src="https://docs.ansible.com/ansible-tower/3.2.4/html_ja/installandreference/_static/images/logo_invert.png" width="10%" height="10%" alt="Ansible logo" align="right"/>
<a href="https://travis-ci.org/robertdebock/ansible-role-epel"><img src="https://travis-ci.org/robertdebock/ansible-role-epel.svg?branch=master" alt="Build status" align="left"/></a>
Install epel on your system.
Example Playbook
----------------
This example is taken from `molecule/default/playbook.yml`:
This example is taken from `molecule/resources/playbook.yml`:
```yaml
---
- name: Converge
@ -20,7 +21,7 @@ This example is taken from `molecule/default/playbook.yml`:
- robertdebock.epel
```
The machine you are running this on, may need to be prepared. Tests have been done on machines prepared by this playbook:
The machine you are running this on, may need to be prepared.
```yaml
---
- name: Prepare
@ -47,7 +48,7 @@ Requirements
------------
- Access to a repository containing packages, likely on the internet.
- A recent version of Ansible. (Tests run on the last 3 release of Ansible.)
- A recent version of Ansible. (Tests run on the current, previous and next release of Ansible.)
The following roles can be installed to ensure all requirements are met, using `ansible-galaxy install -r requirements.yml`:
@ -71,7 +72,7 @@ Compatibility
This role has been tested against the following distributions and Ansible version:
|distribution|ansible 2.6|ansible 2.7|ansible devel|
|distribution|ansible 2.7|ansible 2.8|ansible devel|
|------------|-----------|-----------|-------------|
|centos-6|yes|yes|yes*|
|centos-latest|yes|yes|yes*|
@ -85,26 +86,16 @@ Testing
If you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-epel/issues)
To test this role locally please use [Molecule](https://github.com/metacloud/molecule):
To test this role locally please use [Molecule](https://github.com/ansible/molecule):
```
pip install molecule
molecule test
```
To test on Amazon EC2, configure [~/.aws/credentials](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html) and `export AWS_REGION=eu-central-1` before running `molecule test --scenario-name ec2`.
To test on Amazon EC2, configure [~/.aws/credentials](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html) and set a region using `export AWS_REGION=eu-central-1` before running `molecule test --scenario-name ec2`.
There are many specific scenarios available, please have a look in the `molecule/` directory.
Run the [ansible-galaxy](https://github.com/ansible/galaxy-lint-rules) and [my](https://github.com/robertdebock/ansible-lint-rules) lint rules if you want your change to be merges:
```shell
git clone https://github.com/ansible/ansible-lint.git /tmp/ansible-lint
ansible-lint -r /tmp/ansible-lint/lib/ansiblelint/rules .
git clone https://github.com/robertdebock/ansible-lint /tmp/my-ansible-lint
ansible-lint -r /tmp/my-ansible-lint/rules .
```
License
-------
@ -114,4 +105,4 @@ Apache-2.0
Author Information
------------------
[Robert de Bock](https://robertdebock.nl/) <robert@meinit.nl>
[Robert de Bock](https://robertdebock.nl/)

View File

@ -1 +1 @@
{install_date: 'Fri Jun 7 18:25:45 2019', version: 2.0.3}
{install_date: 'Mon Jul 22 11:31:06 2019', version: 2.0.5}

View File

@ -16,5 +16,11 @@ provisioner:
name: ansible
lint:
name: ansible-lint
inventory:
host_vars:
epel-fedora-latest:
ansible_python_interpreter: /usr/bin/python3
epel-fedora-rawhide:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: default

View File

@ -13,10 +13,14 @@ platforms:
- name: epel-debian
box: debian/stretch64
- name: epel-fedora
box: fedora/29-cloud-base
box: fedora/30-cloud-base
provisioner:
name: ansible
lint:
name: ansible-lint
inventory:
host_vars:
epel-fedora:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: vagrant

View File

@ -19,9 +19,6 @@ env:
- version=">=2.7,<2.8" distro="centos-latest"
- version="" distro="centos-latest"
- version="devel" distro="centos-latest"
- version=">=2.7,<2.8" distro="debian-latest"
- version="" distro="debian-latest"
- version="devel" distro="debian-latest"
- version=">=2.7,<2.8" distro="debian-stable"
- version="" distro="debian-stable"
- version="devel" distro="debian-stable"
@ -56,7 +53,6 @@ matrix:
- env: version="devel" distro="archlinux"
- env: version="devel" distro="centos-6"
- env: version="devel" distro="centos-latest"
- env: version="devel" distro="debian-latest"
- env: version="devel" distro="debian-stable"
- env: version=">=2.7,<2.8" distro="debian-unstable"
- env: version="" distro="debian-unstable"

View File

@ -1,4 +1,10 @@
# Please contribute!
# Please contribute
You can really make a difference by:
- [Making an issue](https://help.github.com/articles/creating-an-issue/). A well described issue helps a lot.
- [Making a pull request](https://services.github.com/on-demand/github-cli/open-pull-request-github) when you see the error in code.
I'll try to help and take every contribution seriously.
It's a great opportunity for me to learn how you use the role and also an opportunity to get into the habit of contributing to open source software.

View File

@ -1,14 +1,15 @@
fail2ban
=========
[![Build Status](https://travis-ci.org/robertdebock/ansible-role-fail2ban.svg?branch=master)](https://travis-ci.org/robertdebock/ansible-role-fail2ban)
<img src="https://docs.ansible.com/ansible-tower/3.2.4/html_ja/installandreference/_static/images/logo_invert.png" width="10%" height="10%" alt="Ansible logo" align="right"/>
<a href="https://travis-ci.org/robertdebock/ansible-role-fail2ban"><img src="https://travis-ci.org/robertdebock/ansible-role-fail2ban.svg?branch=master" alt="Build status" align="left"/></a>
Install and configure fail2ban on your system.
Example Playbook
----------------
This example is taken from `molecule/default/playbook.yml`:
This example is taken from `molecule/resources/playbook.yml`:
```yaml
---
- name: Converge
@ -20,12 +21,13 @@ This example is taken from `molecule/default/playbook.yml`:
- robertdebock.fail2ban
```
The machine you are running this on, may need to be prepared. Tests have been done on machines prepared by this playbook:
The machine you are running this on, may need to be prepared.
```yaml
---
- name: Prepare
hosts: all
gather_facts: no
become: yes
roles:
- robertdebock.bootstrap
@ -45,7 +47,7 @@ These variables are set in `defaults/main.yml`:
fail2ban_loglevel: INFO
fail2ban_logtarget: /var/log/fail2ban.log
fail2ban_ignoreself: true
fail2ban_ignoreself: "true"
fail2ban_ignoreips: "127.0.0.1/8 ::1"
fail2ban_bantime: 10m
fail2ban_findtime: 10m
@ -58,7 +60,7 @@ Requirements
------------
- Access to a repository containing packages, likely on the internet.
- A recent version of Ansible. (Tests run on the last 3 release of Ansible.)
- A recent version of Ansible. (Tests run on the current, previous and next release of Ansible.)
The following roles can be installed to ensure all requirements are met, using `ansible-galaxy install -r requirements.yml`:
@ -83,14 +85,13 @@ Compatibility
This role has been tested against the following distributions and Ansible version:
|distribution|ansible 2.6|ansible 2.7|ansible devel|
|distribution|ansible 2.7|ansible 2.8|ansible devel|
|------------|-----------|-----------|-------------|
|alpine-edge*|yes|yes|yes*|
|alpine-latest|yes|yes|yes*|
|archlinux|yes|yes|yes*|
|centos-6|yes|yes|yes*|
|centos-latest|yes|yes|yes*|
|debian-latest|yes|yes|yes*|
|debian-stable|yes|yes|yes*|
|debian-unstable*|yes|yes|yes*|
|fedora-latest|yes|yes|yes*|
@ -109,26 +110,16 @@ Testing
If you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-fail2ban/issues)
To test this role locally please use [Molecule](https://github.com/metacloud/molecule):
To test this role locally please use [Molecule](https://github.com/ansible/molecule):
```
pip install molecule
molecule test
```
To test on Amazon EC2, configure [~/.aws/credentials](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html) and `export AWS_REGION=eu-central-1` before running `molecule test --scenario-name ec2`.
To test on Amazon EC2, configure [~/.aws/credentials](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html) and set a region using `export AWS_REGION=eu-central-1` before running `molecule test --scenario-name ec2`.
There are many specific scenarios available, please have a look in the `molecule/` directory.
Run the [ansible-galaxy](https://github.com/ansible/galaxy-lint-rules) and [my](https://github.com/robertdebock/ansible-lint-rules) lint rules if you want your change to be merges:
```shell
git clone https://github.com/ansible/ansible-lint.git /tmp/ansible-lint
ansible-lint -r /tmp/ansible-lint/lib/ansiblelint/rules .
git clone https://github.com/robertdebock/ansible-lint /tmp/my-ansible-lint
ansible-lint -r /tmp/my-ansible-lint/rules .
```
License
-------
@ -138,4 +129,4 @@ Apache-2.0
Author Information
------------------
[Robert de Bock](https://robertdebock.nl/) <robert@meinit.nl>
[Robert de Bock](https://robertdebock.nl/)

View File

@ -4,7 +4,7 @@
fail2ban_loglevel: INFO
fail2ban_logtarget: /var/log/fail2ban.log
fail2ban_ignoreself: true
fail2ban_ignoreself: "true"
fail2ban_ignoreips: "127.0.0.1/8 ::1"
fail2ban_bantime: 10m
fail2ban_findtime: 10m

View File

@ -1 +1 @@
{install_date: 'Fri Jun 7 18:25:48 2019', version: 2.0.3}
{install_date: 'Mon Jul 22 11:31:09 2019', version: 2.0.6}

View File

@ -1,22 +0,0 @@
---
dependency:
name: galaxy
options:
role-file: requirements.yml
lint:
name: yamllint
driver:
name: docker
platforms:
- name: fail2ban-debian-latest
image: debian:latest
pre_build_image: yes
provisioner:
name: ansible
playbooks:
prepare: ../resources/prepare.yml
converge: ../resources/playbook.yml
lint:
name: ansible-lint
scenario:
name: debian-latest

View File

@ -25,9 +25,6 @@ platforms:
- name: fail2ban-centos-latest
image: centos:latest
pre_build_image: yes
- name: fail2ban-debian-latest
image: debian:latest
pre_build_image: yes
- name: fail2ban-debian-stable
image: debian:stable
pre_build_image: yes
@ -41,7 +38,7 @@ platforms:
image: fedora:rawhide
pre_build_image: yes
- name: fail2ban-opensuse-leap
image: opensuse:leap
image: opensuse/leap
pre_build_image: yes
- name: fail2ban-ubuntu-latest
image: ubuntu:latest
@ -59,5 +56,11 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
host_vars:
fail2ban-fedora-latest:
ansible_python_interpreter: /usr/bin/python3
fail2ban-fedora-rawhide:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: default

View File

@ -18,5 +18,9 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
group_vars:
all:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: fedora-latest

View File

@ -20,5 +20,9 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
group_vars:
all:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: fedora-rawhide

View File

@ -9,7 +9,7 @@ driver:
name: docker
platforms:
- name: fail2ban-opensuse-leap
image: opensuse:leap
image: opensuse/leap
pre_build_image: yes
provisioner:
name: ansible

View File

@ -13,7 +13,7 @@ platforms:
- name: fail2ban-debian
box: debian/stretch64
- name: fail2ban-fedora
box: fedora/29-cloud-base
box: fedora/30-cloud-base
provisioner:
name: ansible
playbooks:
@ -21,5 +21,9 @@ provisioner:
converge: ../resources/playbook.yml
lint:
name: ansible-lint
inventory:
host_vars:
fail2ban-fedora:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: vagrant

View File

@ -19,9 +19,6 @@ env:
- version=">=2.7,<2.8" distro="centos-latest"
- version="" distro="centos-latest"
- version="devel" distro="centos-latest"
- version=">=2.7,<2.8" distro="debian-latest"
- version="" distro="debian-latest"
- version="devel" distro="debian-latest"
- version=">=2.7,<2.8" distro="debian-stable"
- version="" distro="debian-stable"
- version="devel" distro="debian-stable"
@ -56,7 +53,6 @@ matrix:
- env: version="devel" distro="archlinux"
- env: version="devel" distro="centos-6"
- env: version="devel" distro="centos-latest"
- env: version="devel" distro="debian-latest"
- env: version="devel" distro="debian-stable"
- env: version=">=2.7,<2.8" distro="debian-unstable"
- env: version="" distro="debian-unstable"

View File

@ -1,4 +1,10 @@
# Please contribute!
# Please contribute
You can really make a difference by:
- [Making an issue](https://help.github.com/articles/creating-an-issue/). A well described issue helps a lot.
- [Making a pull request](https://services.github.com/on-demand/github-cli/open-pull-request-github) when you see the error in code.
I'll try to help and take every contribution seriously.
It's a great opportunity for me to learn how you use the role and also an opportunity to get into the habit of contributing to open source software.

Some files were not shown because too many files have changed in this diff Show More