]>
arthur.barton.de Git - AnsibleRoles.git/log
Alexander Barton [Fri, 7 Oct 2022 10:39:16 +0000 (12:39 +0200)]
Add ansible-lint configuration
With this current setting, all errors are turned into warnings only, and
some are even skipped completely ...
But we definitely should upgrade all rules accordingly!
Alexander Barton [Fri, 7 Oct 2022 10:38:04 +0000 (12:38 +0200)]
Add initial .gitignore file excluding a Python virtual environment
Alexander Barton [Fri, 26 Aug 2022 09:55:06 +0000 (11:55 +0200)]
nodejs: Introduce new "nodejs_apt_release" variable to specify the release name
This defaults to the "global" release name of the target system.
Alexander Barton [Wed, 26 Jan 2022 11:13:02 +0000 (12:13 +0100)]
linux-zfs: Remove unused variables and outdated tasks
Alexander Barton [Tue, 21 Sep 2021 09:39:44 +0000 (11:39 +0200)]
apache2: Listen for "SSL certificates updated" notifications
Alexander Barton [Wed, 28 Jul 2021 10:52:40 +0000 (12:52 +0200)]
nfs-client: Update for Debian 9 and Debian 10
Alexander Barton [Wed, 28 Jul 2021 10:52:14 +0000 (12:52 +0200)]
lvm-lv: Use "partitions" tag, like other tasks do ...
Alexander Barton [Wed, 28 Jul 2021 10:51:11 +0000 (12:51 +0200)]
systemd: Add "restart systemd-journald(8) daemon" handler
And make use of the "systemd" module!
Alexander Barton [Wed, 10 Mar 2021 16:29:22 +0000 (17:29 +0100)]
ansible/td-mysql-server: Add "no_log" to tasks dealing with passwords
This fixes the following warning of Ansible:
"Module did not set no_log for update_password"
Alexander Barton [Mon, 23 Nov 2020 15:04:50 +0000 (16:04 +0100)]
Add new "repository-microsoft" role
Alexander Barton [Mon, 23 Nov 2020 14:44:19 +0000 (15:44 +0100)]
nfs-client: Remove "when" contitional from handler
Alexander Barton [Mon, 9 Nov 2020 15:23:47 +0000 (16:23 +0100)]
Remove all tags from all tasks of handlers
Alexander Barton [Mon, 9 Nov 2020 12:52:07 +0000 (13:52 +0100)]
Remove all tags from all "flush_handlers" meta tasks
Alexander Barton [Fri, 6 Nov 2020 10:07:57 +0000 (11:07 +0100)]
mysql-server: Use local socket for initial user configuration
Alexander Barton [Fri, 6 Nov 2020 10:07:34 +0000 (11:07 +0100)]
mysql-server: Install Python module for Python 3
Alexander Barton [Mon, 5 Oct 2020 15:26:42 +0000 (17:26 +0200)]
Fix ansible-lint warning 602: "Don't compare to empty string"
Alexander Barton [Mon, 5 Oct 2020 15:25:00 +0000 (17:25 +0200)]
ansible-base: Use more portable group 0 instead of "root"
For example, on OpenBSD the root group is named "wheel" ...
Alexander Barton [Mon, 5 Oct 2020 15:24:27 +0000 (17:24 +0200)]
check-mk-agent: No longer install "logwatch" component
This package isn't provided any more on recent Debian systems.
Alexander Barton [Mon, 7 Sep 2020 11:09:34 +0000 (13:09 +0200)]
ansible-lint: Fix warning 208: "File permissions not mentioned"
Alexander Barton [Thu, 28 May 2020 15:24:18 +0000 (17:24 +0200)]
check-mk-agent: "nagios-plugins-basic" is "monitoring-plugins-basic" since Debian 7 ...
Alexander Barton [Thu, 28 May 2020 12:55:42 +0000 (14:55 +0200)]
debian-base: "telnet-ssl" is no longer available on Debian 10
So only install it on Debian < 10 systems, and install "telnet" on
Debian >= 10 ...
Alexander Barton [Fri, 17 Jan 2020 10:57:05 +0000 (11:57 +0100)]
linux-zfs: Get rid of "zpool-scrub" config, now included in "zfs-utils"
Alexander Barton [Wed, 24 Jul 2019 12:52:00 +0000 (14:52 +0200)]
check-mk-agent: Don't setup own systemd service files
Current check-mk-agent packages have a good configuration bundled
already, so no need to setup own variants any more.
Alexander Barton [Tue, 23 Apr 2019 14:41:22 +0000 (16:41 +0200)]
apache2-php5, check-mk-agent: Fix warnings of ansible-lint(1)
- 306: Shells that use pipes should set the pipefail option
- 601 Don't compare to literal True/False
Alexander Barton [Mon, 8 Apr 2019 12:45:57 +0000 (14:45 +0200)]
apt-date: Ignore errors while updating repositories
This makes sense, because probably later tasks will update the APT
configuration anyway: for example for inhouse-setups, some proxy servers
etc. must be setup first ...
Alexander Barton [Tue, 2 Apr 2019 12:41:23 +0000 (14:41 +0200)]
check-mk-agent: Add "systemd" tag to task checking for service file
This is required to be able to use "-l systemd" with this role.
Alexander Barton [Mon, 18 Mar 2019 17:59:33 +0000 (18:59 +0100)]
Use integer comparision when dealing with "ansible_distribution_major_version"
Alexander Barton [Thu, 7 Feb 2019 14:49:32 +0000 (15:49 +0100)]
Streamline tag usage, make sure "apt" is set on every apt task
Alexander Barton [Mon, 28 Jan 2019 12:58:06 +0000 (13:58 +0100)]
nodejs: Don't try to install "npm", its included in "nodejs" package
In the past "npm" was a separate package which depended on the "nodejs"
package, but today, "npm" is included in the latter.
Alexander Barton [Tue, 6 Nov 2018 10:37:05 +0000 (11:37 +0100)]
autofs: Make mount options for /net configurable
This introduces the new variable "autofs_mount_options_net".
Alexander Barton [Thu, 18 Oct 2018 16:32:15 +0000 (18:32 +0200)]
Update "apt" tasks to use lists
This fixes the following deprecation warning:
'Invoking "apt" only once while using a loop via squash_actions is
deprecated. Instead of using a loop to supply multiple items and
specifying `name: {{ item }}`'
Alexander Barton [Tue, 16 Oct 2018 14:01:58 +0000 (16:01 +0200)]
Correctly cast variables to integers in Jinja templates
This is required for the Ansible configuration to become compatible
with Python 3.
Alexander Barton [Fri, 20 Jul 2018 14:07:19 +0000 (16:07 +0200)]
net-base: Don't set the host name inside of LXC containers
Alexander Barton [Fri, 13 Jul 2018 09:56:36 +0000 (11:56 +0200)]
apache2-php7: Install "php-pgsql" by default
Alexander Barton [Tue, 22 May 2018 13:51:27 +0000 (15:51 +0200)]
lvm-mv: Remove bogus references to MySQL ...
Alexander Barton [Mon, 23 Apr 2018 13:50:33 +0000 (15:50 +0200)]
nodejs: "nodejs_version" is a number, don't quote it
Alexander Barton [Mon, 23 Apr 2018 13:50:06 +0000 (15:50 +0200)]
Apt module: Update "state=installed" to "state=present"
"state=installed" will be deprecated.
Alexander Barton [Fri, 16 Mar 2018 16:24:23 +0000 (17:24 +0100)]
New "nodejs" role
Alexander Barton [Fri, 2 Mar 2018 13:34:54 +0000 (14:34 +0100)]
New "kexec" role
This role sets up the Linux kexec tools.
Alexander Barton [Tue, 27 Feb 2018 10:47:29 +0000 (11:47 +0100)]
postgresql-server: Make sure service is enabled and started
Bring it in line with mysql-server.
Alexander Barton [Tue, 27 Feb 2018 10:46:56 +0000 (11:46 +0100)]
lvm-lv: Fix role, make it usable by adding "lvm_lv_mountpoint"
Up to now, the LVM LV became always mounted on /var/lib/mysql which
doesn't make sense (in most cases), silly me ...
Update mysql-server & postgresql.server roles accordingly.
Alexander Barton [Mon, 19 Feb 2018 17:11:48 +0000 (18:11 +0100)]
postgresql-server: Optionally create own LVM LV and file system
This was supported by the mysql-server role already, bring it in line.
Alexander Barton [Mon, 19 Feb 2018 17:10:43 +0000 (18:10 +0100)]
New "lvm-lv" role
This role creates an Logical Volume (LV) in an existing LVM Volume
Group (VG), including the ext4 file system. And it even resizes
(enlarges) existing LV and file systems.
The code has been used by the mysql-server role already, but this
patch refactors it into its own reusable "role".
Alexander Barton [Mon, 19 Feb 2018 17:07:19 +0000 (18:07 +0100)]
check-mk-agent: Only install "check-mk-agent-logwatch" on Debian 7 & 8
The check-mk-agent and check-mk-agent-logwatch packages have been removed
in Debian 9, and there is only a "check-mk-agent" package provided by
Check_MK itself (no "check-mk-agent-logwatch"). So assume that this
package has been added to an internal repository, but don't try to install
"check-mk-agent-logwatch" on Debian 9 or newer ...
Alexander Barton [Mon, 19 Feb 2018 17:02:26 +0000 (18:02 +0100)]
apt-base: Don't list "APT update" as "changed", even when run
This "only" updates the local APT package database periodically, and we
don't want Ansible to cont (and show!) this as "changed" when actually
nothing happend to the system configuration itself.
Alexander Barton [Fri, 26 Jan 2018 15:50:06 +0000 (16:50 +0100)]
postfix: Correct order of tasks, modify files after installing packages
This is required because otherwise the files aren't there at all ...
Alexander Barton [Fri, 26 Jan 2018 15:49:22 +0000 (16:49 +0100)]
debian-base: Don't install a Linux kernel into OpenVZ guests
Alexander Barton [Fri, 19 Jan 2018 13:30:24 +0000 (14:30 +0100)]
piwik: Set PHP memory_limit and max_execution_time
Set memory_limit to 256 MB (was 128 MB, Debian default),
and max_execution_time to 60m seconds (was 30 seconds).
Alexander Barton [Thu, 18 Jan 2018 17:07:08 +0000 (18:07 +0100)]
postfix: Make sure that Debconf and main.cf are in sync
Alexander Barton [Thu, 18 Jan 2018 17:06:50 +0000 (18:06 +0100)]
check-mk-agent: Install "check-mk-agent-logwatch" on Debian 7 or newer only
Alexander Barton [Fri, 1 Dec 2017 15:09:39 +0000 (16:09 +0100)]
apache2: Get rid of "apache2-mpm-prefork" package
apache2-mpm-prefork was a "transitional package" in Debian 8, and no
longer exists in Debian 9. Use "apache2".
Alexander Barton [Fri, 1 Dec 2017 15:09:10 +0000 (16:09 +0100)]
postfix: Fix type of Debconf option "postfix/protocols"
Alexander Barton [Wed, 25 Oct 2017 13:04:05 +0000 (15:04 +0200)]
piwik: Remove README.md.gz, to make Piwik self-check happy
The file is installed by the package itself, strange ...
Alexander Barton [Mon, 23 Oct 2017 12:10:03 +0000 (14:10 +0200)]
New "apache2-php7" role
Alexander Barton [Thu, 12 Oct 2017 14:02:15 +0000 (16:02 +0200)]
nfs-client: Make role compatible with newer Debian releases
- The "nfs-common" service is masked in systemd
- More recent systems use /run/rpc_pipefs
Alexander Barton [Thu, 12 Oct 2017 14:01:17 +0000 (16:01 +0200)]
os-base: Use "systemd" module instead of generic "command"
Alexander Barton [Thu, 12 Oct 2017 14:00:37 +0000 (16:00 +0200)]
apache2: Add 'reload "apache2" (graceful)' handler
Alexander Barton [Thu, 17 Aug 2017 15:09:54 +0000 (17:09 +0200)]
postfix: Let debconf regenerate main.cf on changes
And reload configuration afterwards.
Alexander Barton [Thu, 17 Aug 2017 15:08:52 +0000 (17:08 +0200)]
sshd: Update for Debian 9 "stretch"
There is no "openssh-blacklist-extra" package any more.
Alexander Barton [Fri, 19 May 2017 13:19:36 +0000 (15:19 +0200)]
New "piwik" role
Alexander Barton [Thu, 18 May 2017 16:26:26 +0000 (18:26 +0200)]
apache2: Add "apache" tag to 'restart "apache2"' handler
Alexander Barton [Thu, 18 May 2017 15:09:58 +0000 (17:09 +0200)]
Update documentation
Alexander Barton [Wed, 17 May 2017 18:11:40 +0000 (20:11 +0200)]
postfix: Configure a satellite system and use debconf
Don’t mangle the generated main.cf file.
Alexander Barton [Tue, 9 May 2017 14:04:32 +0000 (16:04 +0200)]
docker-engine: Setup Docker to not stop containers on restart
See <https://docs.docker.com/engine/admin/live-restore/>.
Alexander Barton [Tue, 9 May 2017 14:03:46 +0000 (16:03 +0200)]
docker-engine: Add handler to reload Docker
Alexander Barton [Tue, 9 May 2017 14:00:28 +0000 (16:00 +0200)]
docker-engine: Add handler to restart Docker
Alexander Barton [Tue, 9 May 2017 13:06:31 +0000 (15:06 +0200)]
postfix: Don't use Debconf to configure postfix
Ansible is used to configure the Postfix mail system, so set Debconf to
"No configuration" but add some more options to this role:
- postfix_interfaces (defauult: "all")
- smtp_relay_host (default: none)
Alexander Barton [Wed, 3 May 2017 11:34:39 +0000 (13:34 +0200)]
ansible-lint: Fix "Package installs should not use latest" warning
Indeed, we don't want to install updates unintentionally!
Alexander Barton [Wed, 3 May 2017 11:34:19 +0000 (13:34 +0200)]
ansible-lint: Fix "Git checkouts must contain explicit version" warning
Alexander Barton [Wed, 3 May 2017 11:24:26 +0000 (13:24 +0200)]
ansible-lint: Fix "Use shell only when shell functionality is required" warning
Alexander Barton [Wed, 3 May 2017 10:08:39 +0000 (12:08 +0200)]
ansible-lint: Fix "Octal file permissions must contain leading zero" warnings
Problem found by ansible-lint(1) tool.
Alexander Barton [Tue, 25 Apr 2017 14:14:38 +0000 (16:14 +0200)]
apache2-php5: Fix check if "php5-apcu" package is available
Alexander Barton [Tue, 25 Apr 2017 14:04:31 +0000 (16:04 +0200)]
Use "service: state=started" instead of "running"
This fixes the following warning of Ansible 2.3.0:
[DEPRECATION WARNING]: state=running is deprecated. Please use
state=started. This feature will be removed in version 2.7.
Alexander Barton [Thu, 6 Apr 2017 15:06:17 +0000 (17:06 +0200)]
linux-zfs: Remove now unused "ZFS on Linux" assets
Alexander Barton [Thu, 6 Apr 2017 14:36:58 +0000 (16:36 +0200)]
linux-zfs: Use Debian-native ZFS packages
Alexander Barton [Thu, 6 Apr 2017 09:19:12 +0000 (11:19 +0200)]
apache2-php5: Don't try to install php5-apcu by default
Alexander Barton [Wed, 5 Apr 2017 15:09:53 +0000 (17:09 +0200)]
apache2-php5: Fix name of "php-apc" package
Alexander Barton [Wed, 5 Apr 2017 14:07:38 +0000 (16:07 +0200)]
Always run "check tasks" to register variables, even in "check mode"
Otherwise Ansible tries to use variables that are unknown because
the "register" task wasn't run.
Alexander Barton [Wed, 5 Apr 2017 13:37:13 +0000 (15:37 +0200)]
New "postgresql-server" role
Alexander Barton [Wed, 5 Apr 2017 13:26:15 +0000 (15:26 +0200)]
mysql-server: Add common handlers
- "reload MySQL daemon"
- "restart MySQL daemon"
Alexander Barton [Tue, 14 Mar 2017 10:04:05 +0000 (11:04 +0100)]
apach2-php5: Make role aware of "php5-apcu" package
Alexander Barton [Wed, 27 Jul 2016 15:20:57 +0000 (17:20 +0200)]
sshd: New handler 'restart "sshd"'
Alexander Barton [Tue, 5 Jul 2016 08:40:34 +0000 (10:40 +0200)]
linux-zfs: Make start time of "scrub" job configurable
Alexander Barton [Fri, 17 Jun 2016 11:29:27 +0000 (13:29 +0200)]
New "systemd" role
At the moment this only contains a "refresh systemd(8) configuration"
handler, which should be notified after installing or removing systemd
unit files, for example.
Alexander Barton [Wed, 1 Jun 2016 14:45:27 +0000 (16:45 +0200)]
New "apache2" role
The existing "apache2-php5" role has been split up and depends on
this new role now.
Alexander Barton [Wed, 1 Jun 2016 14:12:00 +0000 (16:12 +0200)]
apach2-php5: Correctly enable "apache2" (not "autofs"!)
Alexander Barton [Thu, 19 May 2016 13:28:15 +0000 (15:28 +0200)]
ntpd: Make list of NTP servers configurable
Alexander Barton [Thu, 14 Apr 2016 15:32:30 +0000 (17:32 +0200)]
linux-zfs: Install required "build-essential" package
Alexander Barton [Thu, 14 Apr 2016 14:55:20 +0000 (16:55 +0200)]
git-backup-script: Make sure "make" is installed, which is required
Alexander Barton [Fri, 26 Feb 2016 12:38:57 +0000 (13:38 +0100)]
mysql-server: Add "mysqld" tag
Alexander Barton [Thu, 18 Feb 2016 10:53:40 +0000 (11:53 +0100)]
apt-base: Don't install recommended packages by default
Alexander Barton [Mon, 8 Feb 2016 15:42:56 +0000 (16:42 +0100)]
mysql-server: Only remove root@localhost when not active
Alexander Barton [Thu, 17 Dec 2015 16:24:31 +0000 (17:24 +0100)]
check-mk-agent: Correctly name "Check_MK" :-)
Alexander Barton [Thu, 17 Dec 2015 16:18:30 +0000 (17:18 +0100)]
check-mk-agent: Configure xinetd(8) on Debian <8 hosts
Alexander Barton [Thu, 17 Dec 2015 16:17:42 +0000 (17:17 +0100)]
check-mk-agent: Fix detection of non-systemd-enabled hosts
Alexander Barton [Thu, 17 Dec 2015 16:16:29 +0000 (17:16 +0100)]
New "xinetd" role
Alexander Barton [Thu, 17 Dec 2015 15:38:18 +0000 (16:38 +0100)]
check-mk-agent: Add missing "check_mk" tags
Alexander Barton [Wed, 25 Nov 2015 15:24:40 +0000 (16:24 +0100)]
check-mk-agent: Depend on "nagios-plugins-basic"
The "monitoring-plugins-basic" package is quite new and not available on
older systems, whereas the "nagios-plugins-basic" is still available even
in Debian "sid" (unstable), and depends on the "monitoring-plugins-basic"
when required.
So depend on "nagios-plugins-basic" instead of "monitoring-plugins-basic".
Alexander Barton [Wed, 25 Nov 2015 12:53:07 +0000 (13:53 +0100)]
New "check-mk-agent" role
Alexander Barton [Wed, 25 Nov 2015 12:52:19 +0000 (13:52 +0100)]
os-base: Implement "reload systemd daemon" handler