Compare commits
92 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
81e11d5456 | 1 month ago |
|
|
263884070d | 1 month ago |
|
|
c01f430957 | 3 months ago |
|
|
c0dd5c6966 | 3 months ago |
|
|
ce0c596700 | 3 months ago |
|
|
2791abe17a | 3 months ago |
|
|
ced63f96d9 | 4 months ago |
|
|
cbf47967b1 | 4 months ago |
|
|
f77db1da59 | 4 months ago |
|
|
fd1d45568a | 4 months ago |
|
|
021d712edc | 4 months ago |
|
|
536ab7d78e | 4 months ago |
|
|
4f213ab365 | 6 months ago |
|
|
1b137f1531 | 6 months ago |
|
|
0eb7ee2250 | 7 months ago |
|
|
9e02175134 | 7 months ago |
|
|
29d78ae4aa | 10 months ago |
|
|
f423529211 | 10 months ago |
|
|
b8c876dac5 | 11 months ago |
|
|
0ebbb0650d | 11 months ago |
|
|
161a231e48 | 11 months ago |
|
|
517768ac3f | 11 months ago |
|
|
5075cf9c24 | 1 year ago |
|
|
d8494129f5 | 1 year ago |
|
|
4b0954a441 | 1 year ago |
|
|
02898d70a4 | 1 year ago |
|
|
d8408b1f25 | 1 year ago |
|
|
35cc81b074 | 1 year ago |
|
|
c883f177f3 | 1 year ago |
|
|
a41a9544eb | 1 year ago |
|
|
33b082f432 | 1 year ago |
|
|
f4d7385a9c | 1 year ago |
|
|
4bc0d9a050 | 1 year ago |
|
|
9e5d6bfb1b | 1 year ago |
|
|
94e02e1157 | 1 year ago |
|
|
37684545e7 | 1 year ago |
|
|
63e193bdbe | 1 year ago |
|
|
644d42f831 | 1 year ago |
|
|
0b895c8673 | 1 year ago |
|
|
61c82c8dee | 1 year ago |
|
|
80efb4668d | 1 year ago |
|
|
6f903b28de | 1 year ago |
|
|
db1b7af6cc | 1 year ago |
|
|
bfafcbbc77 | 1 year ago |
|
|
5e903ab1e1 | 1 year ago |
|
|
d0d39cccf2 | 1 year ago |
|
|
3f7a0f74a5 | 2 years ago |
|
|
f6ed546c38 | 2 years ago |
|
|
b488baed25 | 2 years ago |
|
|
d70ec4e540 | 2 years ago |
|
|
8059be7160 | 2 years ago |
|
|
1c0253f201 | 2 years ago |
|
|
11e5529e44 | 2 years ago |
|
|
1fbf93203c | 2 years ago |
|
|
541f7c3247 | 2 years ago |
|
|
1572da1563 | 2 years ago |
|
|
d83cfd6bed | 2 years ago |
|
|
d26ded2ecb | 2 years ago |
|
|
b4d910ae1d | 2 years ago |
|
|
660d3e0885 | 4 years ago |
|
|
8ab84237af | 4 years ago |
|
|
bd3cfb4230 | 4 years ago |
|
|
1a84184838 | 4 years ago |
|
|
2bdffd05d0 | 4 years ago |
|
|
b19223c168 | 4 years ago |
|
|
61ccf055ad | 4 years ago |
|
|
74e7bc2bf7 | 4 years ago |
|
|
55f973e74e | 4 years ago |
|
|
58ce9d83a4 | 4 years ago |
|
|
d3f6ad74c4 | 6 years ago |
|
|
706a94bc97 | 6 years ago |
|
|
251642943d | 7 years ago |
|
|
407307adf6 | 7 years ago |
|
|
ae80d42cb4 | 7 years ago |
|
|
129f7c5dea | 7 years ago |
|
|
cf1286b9e1 | 7 years ago |
|
|
e56db4ccb7 | 7 years ago |
|
|
d9696c1cd5 | 7 years ago |
|
|
0114358df0 | 7 years ago |
|
|
71f8e84845 | 7 years ago |
|
|
2ab6394d1c | 7 years ago |
|
|
3c63290445 | 7 years ago |
|
|
5667116f58 | 7 years ago |
|
|
2446f85cb6 | 7 years ago |
|
|
ff5044272f | 7 years ago |
|
|
b1c7afa948 | 7 years ago |
|
|
92e058c178 | 7 years ago |
|
|
74eb9b2702 | 7 years ago |
|
|
d16f7eec26 | 7 years ago |
|
|
2a53d7b658 | 7 years ago |
|
|
bac2fe1689 | 7 years ago |
|
|
f8e191ca8d | 8 years ago |
@ -0,0 +1,33 @@
|
|||||||
|
---
|
||||||
|
name: Mitogen 0.2.x bug report
|
||||||
|
about: Report a bug in Mitogen 0.2.x (for Ansible 2.5, 2.6, 2.7, 2.8, or 2.9)
|
||||||
|
title: ''
|
||||||
|
labels: affects-0.2, bug
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Please drag-drop large logs as text file attachments.
|
||||||
|
|
||||||
|
Feel free to write an issue in your preferred format, however if in doubt, use
|
||||||
|
the following checklist as a guide for what to include.
|
||||||
|
|
||||||
|
* Which version of Ansible are you running?
|
||||||
|
* Is your version of Ansible patched in any way?
|
||||||
|
* Are you running with any custom modules, or `module_utils` loaded?
|
||||||
|
|
||||||
|
* Have you tried the latest master version from Git?
|
||||||
|
* Do you have some idea of what the underlying problem may be?
|
||||||
|
https://mitogen.networkgenomics.com/ansible_detailed.html#common-problems has
|
||||||
|
instructions to help figure out the likely cause and how to gather relevant
|
||||||
|
logs.
|
||||||
|
* Mention your host and target OS and versions
|
||||||
|
* Mention your host and target Python versions
|
||||||
|
* If reporting a performance issue, mention the number of targets and a rough
|
||||||
|
description of your workload (lots of copies, lots of tiny file edits, etc.)
|
||||||
|
* If reporting a crash or hang in Ansible, please rerun with -vvv and include
|
||||||
|
200 lines of output around the point of the error, along with a full copy of
|
||||||
|
any traceback or error text in the log. Beware "-vvv" may include secret
|
||||||
|
data! Edit as necessary before posting.
|
||||||
|
* If reporting any kind of problem with Ansible, please include the Ansible
|
||||||
|
version along with output of "ansible-config dump --only-changed".
|
||||||
@ -0,0 +1,33 @@
|
|||||||
|
---
|
||||||
|
name: Mitogen 0.3.x bug report
|
||||||
|
about: Report a bug in Mitogen 0.3.x (for Ansible 2.10.x)
|
||||||
|
title: ''
|
||||||
|
labels: affects-0.3, bug
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Please drag-drop large logs as text file attachments.
|
||||||
|
|
||||||
|
Feel free to write an issue in your preferred format, however if in doubt, use
|
||||||
|
the following checklist as a guide for what to include.
|
||||||
|
|
||||||
|
* Which version of Ansible are you running?
|
||||||
|
* Is your version of Ansible patched in any way?
|
||||||
|
* Are you running with any custom modules, or `module_utils` loaded?
|
||||||
|
|
||||||
|
* Have you tried the latest master version from Git?
|
||||||
|
* Do you have some idea of what the underlying problem may be?
|
||||||
|
https://mitogen.networkgenomics.com/ansible_detailed.html#common-problems has
|
||||||
|
instructions to help figure out the likely cause and how to gather relevant
|
||||||
|
logs.
|
||||||
|
* Mention your host and target OS and versions
|
||||||
|
* Mention your host and target Python versions
|
||||||
|
* If reporting a performance issue, mention the number of targets and a rough
|
||||||
|
description of your workload (lots of copies, lots of tiny file edits, etc.)
|
||||||
|
* If reporting a crash or hang in Ansible, please rerun with -vvv and include
|
||||||
|
200 lines of output around the point of the error, along with a full copy of
|
||||||
|
any traceback or error text in the log. Beware "-vvv" may include secret
|
||||||
|
data! Edit as necessary before posting.
|
||||||
|
* If reporting any kind of problem with Ansible, please include the Ansible
|
||||||
|
version along with output of "ansible-config dump --only-changed".
|
||||||
@ -1,62 +0,0 @@
|
|||||||
name: Bug report
|
|
||||||
description: Report a bug in Mitogen 0.3.x (for Ansible 2.10 and above)
|
|
||||||
labels:
|
|
||||||
- affects-0.3
|
|
||||||
type: bug
|
|
||||||
|
|
||||||
body:
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: Description
|
|
||||||
description: >
|
|
||||||
When does the problem occur?
|
|
||||||
What happens after?
|
|
||||||
How is this different?
|
|
||||||
Did it previously behave as expected?
|
|
||||||
placeholder: |
|
|
||||||
When I do X, Y happens, but I was expecting Z because ...
|
|
||||||
Before version 1.2.3 it worked as expected.
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: input
|
|
||||||
attributes:
|
|
||||||
label: Mitogen version
|
|
||||||
placeholder: 0.3.31, 0.3.3-9+deb12u1
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: input
|
|
||||||
attributes:
|
|
||||||
label: Ansible version (if applicable)
|
|
||||||
placeholder: 2.18.11
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: OS and environment
|
|
||||||
description: >
|
|
||||||
What operating system version(s), Python version(s), etc. are you using?
|
|
||||||
placeholder: |
|
|
||||||
Controller (master): Debian 13, Python 3.14
|
|
||||||
Targets (slaves): Ubuntu 20.04/Python 2.7, RHEL 10, ...
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: Steps to reproduce
|
|
||||||
description: >
|
|
||||||
Instructions, code, or playbook(s) recreate the beahviour
|
|
||||||
value: |
|
|
||||||
Steps:
|
|
||||||
1. Set config `foo = 42` in somefile.cfg
|
|
||||||
2. Run the following Python or Playbook with `cmd --option bar ...`
|
|
||||||
|
|
||||||
```
|
|
||||||
Code or playbook here
|
|
||||||
```
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: Anything else
|
|
||||||
description: >
|
|
||||||
Include any other details you think might be relevant or helpful.
|
|
||||||
Examples might include logs, unusual settings, environment variables, ...
|
|
||||||
@ -0,0 +1,10 @@
|
|||||||
|
path_classifiers:
|
||||||
|
library:
|
||||||
|
- "mitogen/compat"
|
||||||
|
- "ansible_mitogen/compat"
|
||||||
|
queries:
|
||||||
|
# Mitogen 2.4 compatibility trips this query everywhere, so just disable it
|
||||||
|
- exclude: py/unreachable-statement
|
||||||
|
- exclude: py/should-use-with
|
||||||
|
# mitogen.core.b() trips this query everywhere, so just disable it
|
||||||
|
- exclude: py/import-and-import-from
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2025 Mitogen authors <https://github.com/mitogen-hq>
|
||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# !mitogen: minify_safe
|
||||||
|
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ansible_mitogen
|
||||||
|
except ImportError:
|
||||||
|
sys.path.insert(0, os.path.abspath(os.path.join(__file__, '../../../..')))
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2025 Mitogen authors <https://github.com/mitogen-hq>
|
||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# !mitogen: minify_safe
|
||||||
|
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ansible_mitogen
|
||||||
|
except ImportError:
|
||||||
|
sys.path.insert(0, os.path.abspath(os.path.join(__file__, '../../../..')))
|
||||||
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 84 KiB |
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 99 KiB |
@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
# Add viewBox attr to SVGs lacking it, so IE scales properly.
|
||||||
|
|
||||||
|
import lxml.etree
|
||||||
|
import glob
|
||||||
|
|
||||||
|
|
||||||
|
for name in glob.glob('images/*.svg') + glob.glob('images/ansible/*.svg'):
|
||||||
|
doc = lxml.etree.parse(open(name))
|
||||||
|
svg = doc.getroot()
|
||||||
|
if 'viewBox' not in svg.attrib:
|
||||||
|
svg.attrib['viewBox'] = '0 0 %(width)s %(height)s' % svg.attrib
|
||||||
|
open(name, 'w').write(lxml.etree.tostring(svg, xml_declaration=True, encoding='UTF-8'))
|
||||||
@ -1,8 +0,0 @@
|
|||||||
pkg_mgr_python_interpreter: python3
|
|
||||||
|
|
||||||
# Alma Linux 9, RHEL 9, etc. lack a virtualenv package
|
|
||||||
virtualenv_create_argv:
|
|
||||||
- "{{ virtualenv_python }}"
|
|
||||||
- -m
|
|
||||||
- venv
|
|
||||||
- "{{ virtualenv_path }}"
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
become_doas_available: true
|
|
||||||
pkg_mgr_python_interpreter: python3
|
|
||||||
@ -1,6 +1,4 @@
|
|||||||
package_manager_repos:
|
package_manager_repos:
|
||||||
- dest: /etc/apt/sources.list
|
- dest: /etc/apt/sources.list
|
||||||
content: |
|
content: |
|
||||||
deb http://archive.debian.org/debian/ stretch main contrib non-free
|
deb http://archive.debian.org/debian stretch main contrib non-free
|
||||||
deb http://archive.debian.org/debian/ stretch-proposed-updates main contrib non-free
|
|
||||||
deb http://archive.debian.org/debian-security stretch/updates main contrib non-free
|
|
||||||
|
|||||||
@ -1,2 +0,0 @@
|
|||||||
become_doas_available: true
|
|
||||||
pkg_mgr_python_interpreter: python3
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
become_doas_available: true
|
|
||||||
pkg_mgr_python_interpreter: python3
|
|
||||||
Binary file not shown.
@ -1,5 +0,0 @@
|
|||||||
- name: Setup container host
|
|
||||||
hosts: localhost
|
|
||||||
become: true
|
|
||||||
roles:
|
|
||||||
- role: container_host
|
|
||||||
@ -1,17 +1,12 @@
|
|||||||
|
|
||||||
[defaults]
|
[defaults]
|
||||||
any_errors_fatal = true
|
|
||||||
# Ansible >= 6 (ansible-core >= 2.13)
|
|
||||||
callback_result_format = yaml
|
|
||||||
deprecation_warnings = false
|
deprecation_warnings = false
|
||||||
duplicate_dict_key = error
|
|
||||||
inventory = hosts.ini
|
|
||||||
strategy_plugins = ../../ansible_mitogen/plugins/strategy
|
strategy_plugins = ../../ansible_mitogen/plugins/strategy
|
||||||
retry_files_enabled = false
|
retry_files_enabled = false
|
||||||
|
display_args_to_stdout = True
|
||||||
no_target_syslog = True
|
no_target_syslog = True
|
||||||
host_key_checking = False
|
host_key_checking = False
|
||||||
|
stdout_callback = yaml
|
||||||
|
|
||||||
[inventory]
|
[inventory]
|
||||||
any_unparsed_is_failed = true
|
unparsed_is_fatal = true
|
||||||
host_pattern_mismatch = error
|
|
||||||
unparsed_is_failed = true
|
|
||||||
|
|||||||
@ -1,33 +0,0 @@
|
|||||||
DefaultRuntimeDir ${XDG_RUNTIME_DIR}
|
|
||||||
PidFile ${XDG_RUNTIME_DIR}/apache2.pid
|
|
||||||
|
|
||||||
LoadModule alias_module /usr/lib/apache2/modules/mod_alias.so
|
|
||||||
LoadModule authz_core_module /usr/lib/apache2/modules/mod_authz_core.so
|
|
||||||
LoadModule mpm_event_module /usr/lib/apache2/modules/mod_mpm_event.so
|
|
||||||
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
|
|
||||||
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
|
|
||||||
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
|
|
||||||
LoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so
|
|
||||||
|
|
||||||
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
|
|
||||||
|
|
||||||
KeepAlive On
|
|
||||||
Listen 8090
|
|
||||||
|
|
||||||
<Directory />
|
|
||||||
Require all denied
|
|
||||||
AllowOverride None
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<VirtualHost *:8090>
|
|
||||||
ServerName centos-vault-proxy
|
|
||||||
SSLProxyEngine On
|
|
||||||
CustomLog logs/access.log vhost_combined
|
|
||||||
ProxyPass "/" "https://vault.centos.org/"
|
|
||||||
ProxyPassReverse "https://vault.centos.org/" "/"
|
|
||||||
RedirectMatch "^/(.*)" "http://centos-vault-proxy:8090/$1"
|
|
||||||
</VirtualHost>
|
|
||||||
|
|
||||||
# /usr/sbin/apache2 -d . -f apache_proxy.conf -D FOREGROUND
|
|
||||||
|
|
||||||
# vim: syntax=apache
|
|
||||||
@ -1,6 +0,0 @@
|
|||||||
bootstrap_packages: [python3]
|
|
||||||
docker_base: almalinux:9
|
|
||||||
|
|
||||||
packages:
|
|
||||||
- perl-JSON
|
|
||||||
- procps-ng
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
bootstrap_packages: [python3, python3-apt]
|
|
||||||
docker_base: debian:12
|
|
||||||
|
|
||||||
packages:
|
|
||||||
- libjson-perl
|
|
||||||
- locales
|
|
||||||
- opendoas
|
|
||||||
- virtualenv
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
bootstrap_packages: [python3, python3-apt]
|
|
||||||
docker_base: ubuntu:22.04
|
|
||||||
|
|
||||||
packages:
|
|
||||||
- doas
|
|
||||||
- libjson-perl
|
|
||||||
- locales
|
|
||||||
- python2
|
|
||||||
- python3-virtualenv
|
|
||||||
- virtualenv
|
|
||||||
@ -1,9 +0,0 @@
|
|||||||
bootstrap_packages: [python3, python3-apt]
|
|
||||||
docker_base: ubuntu:24.04
|
|
||||||
|
|
||||||
packages:
|
|
||||||
- libjson-perl
|
|
||||||
- locales
|
|
||||||
- opendoas
|
|
||||||
- python3-virtualenv
|
|
||||||
- virtualenv
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
bootstrap_packages: []
|
|
||||||
package_manager_repos: []
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
- name: Bootstrap
|
|
||||||
raw: "{{ lookup('template', 'bootstrap.sh.j2') }}"
|
|
||||||
changed_when: true
|
|
||||||
@ -1,21 +0,0 @@
|
|||||||
set -o errexit
|
|
||||||
set -o nounset
|
|
||||||
|
|
||||||
{% for item in package_manager_repos %}
|
|
||||||
cat << "EOF" > "{{ item.dest }}"
|
|
||||||
{{ item.content }}
|
|
||||||
EOF
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
{% if bootstrap_packages %}
|
|
||||||
if command -v apt-get; then
|
|
||||||
apt-get -y update
|
|
||||||
apt-get -y --no-install-recommends install {{ bootstrap_packages | join(' ') }}
|
|
||||||
elif command -v dnf; then
|
|
||||||
dnf -y install {{ bootstrap_packages | join(' ') }}
|
|
||||||
elif command -v yum; then
|
|
||||||
yum -y install {{ bootstrap_packages | join(' ') }}
|
|
||||||
else
|
|
||||||
exit 42
|
|
||||||
fi
|
|
||||||
{% endif %}
|
|
||||||
@ -1,6 +0,0 @@
|
|||||||
- name: Update GRUB
|
|
||||||
command: update-grub
|
|
||||||
changed_when: true
|
|
||||||
|
|
||||||
- name: Reboot
|
|
||||||
reboot:
|
|
||||||
@ -1,27 +0,0 @@
|
|||||||
# > If running `docker run --rm -it centos:centos6.7 bash` immediately exits
|
|
||||||
# > with status code 139, check to see if your system has disabled vsyscall:
|
|
||||||
# > ...
|
|
||||||
# > If you do not see a vsyscall mapping, and you need to run a CentOS 6
|
|
||||||
# > container, try adding vsyscall=emulated to the kernel options.
|
|
||||||
# > -- https://hub.docker.com/_/centos
|
|
||||||
|
|
||||||
- name: Check vsyscall enabled
|
|
||||||
command:
|
|
||||||
cmd: grep -c vsyscall /proc/self/maps
|
|
||||||
register: grep_self_maps_result
|
|
||||||
changed_when: false
|
|
||||||
check_mode: false
|
|
||||||
failed_when:
|
|
||||||
# 0 -> match, 1 -> no match, 2 -> error
|
|
||||||
- grep_self_maps_result.rc not in [0, 1]
|
|
||||||
|
|
||||||
- name: Enable vsyscall
|
|
||||||
lineinfile:
|
|
||||||
path: /etc/default/grub
|
|
||||||
regexp: '^GRUB_CMDLINE_LINUX_DEFAULT.+'
|
|
||||||
line: GRUB_CMDLINE_LINUX_DEFAULT="quiet vsyscall=emulate"
|
|
||||||
when:
|
|
||||||
- grep_self_maps_result.rc != 0
|
|
||||||
notify:
|
|
||||||
- Update GRUB
|
|
||||||
- Reboot
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
common_packages: []
|
|
||||||
packages: []
|
|
||||||
|
|
||||||
packages_clean_command:
|
|
||||||
apt: apt-get clean
|
|
||||||
dnf: dnf clean all
|
|
||||||
yum: yum clean all
|
|
||||||
|
|
||||||
packages_cleanup_directories:
|
|
||||||
apt:
|
|
||||||
- /var/cache/apt
|
|
||||||
- /var/lib/apt/lists
|
|
||||||
dnf: []
|
|
||||||
yum: []
|
|
||||||
@ -1,35 +0,0 @@
|
|||||||
- name: Ensure requisite apt packages are installed
|
|
||||||
apt:
|
|
||||||
name: "{{ common_packages + packages }}"
|
|
||||||
state: present
|
|
||||||
install_recommends: false
|
|
||||||
update_cache: true
|
|
||||||
when:
|
|
||||||
- ansible_pkg_mgr == 'apt'
|
|
||||||
|
|
||||||
- name: Ensure requisite yum packages are installed
|
|
||||||
yum:
|
|
||||||
name: "{{ common_packages + packages }}"
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
when:
|
|
||||||
- ansible_pkg_mgr == 'yum'
|
|
||||||
|
|
||||||
- name: Ensure requisite dnf packages are installed
|
|
||||||
dnf:
|
|
||||||
name: "{{ common_packages + packages }}"
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
when:
|
|
||||||
- ansible_pkg_mgr == 'dnf'
|
|
||||||
|
|
||||||
- name: Clean up package cache
|
|
||||||
command:
|
|
||||||
cmd: "{{ packages_clean_command[ansible_pkg_mgr] }}"
|
|
||||||
changed_when: true
|
|
||||||
|
|
||||||
- name: Clean up package directories
|
|
||||||
shell:
|
|
||||||
rm -rf {{ item }}/*
|
|
||||||
with_items: "{{ packages_cleanup_directories }}"
|
|
||||||
changed_when: true
|
|
||||||
@ -1,4 +1,2 @@
|
|||||||
- name: Restart sshd
|
- name: Restart sshd
|
||||||
command: "true"
|
meta: noop
|
||||||
changed_when: false
|
|
||||||
check_mode: false
|
|
||||||
|
|||||||
@ -1,17 +1,6 @@
|
|||||||
#!/usr/bin/env ansible-playbook
|
#!/usr/bin/env ansible-playbook
|
||||||
|
|
||||||
- name: Get base images
|
- include_playbook: _container_create.yml
|
||||||
hosts: all
|
- include_playbook: _container_setup.yml
|
||||||
# strategy: mitogen_free
|
- include_playbook: _user_accounts.yml
|
||||||
gather_facts: false
|
- include_playbook: _container_finalize.yml
|
||||||
tasks:
|
|
||||||
- name: Fetch container base images
|
|
||||||
docker_image:
|
|
||||||
name: "{{ docker_base }}"
|
|
||||||
source: pull # Added in Ansible 2.8, required circa 2.12
|
|
||||||
delegate_to: localhost
|
|
||||||
|
|
||||||
- import_playbook: _container_create.yml
|
|
||||||
- import_playbook: _container_setup.yml
|
|
||||||
- import_playbook: _user_accounts.yml
|
|
||||||
- import_playbook: _container_finalize.yml
|
|
||||||
|
|||||||
@ -1,15 +0,0 @@
|
|||||||
#!/usr/bin/env ansible-playbook
|
|
||||||
|
|
||||||
- name: Get base images
|
|
||||||
hosts: all
|
|
||||||
gather_facts: false
|
|
||||||
tasks:
|
|
||||||
- name: Fetch container base images
|
|
||||||
docker_image:
|
|
||||||
name: "{{ docker_base }}"
|
|
||||||
delegate_to: localhost
|
|
||||||
|
|
||||||
- include: _container_create.yml
|
|
||||||
- include: _container_setup.yml
|
|
||||||
- include: _user_accounts.yml
|
|
||||||
- include: _container_finalize.yml
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue