]> git.phdru.name Git - ansible.git/log
ansible.git
4 years agoFeat(logcheck): Update ignore pattern in `local-ssh`
Oleg Broytman [Sat, 16 Nov 2019 15:04:51 +0000 (18:04 +0300)]
Feat(logcheck): Update ignore pattern in `local-ssh`

4 years agoFeat(logcheck): Update ignore pattern in `local-named`
Oleg Broytman [Sat, 16 Nov 2019 15:04:51 +0000 (18:04 +0300)]
Feat(logcheck): Update ignore pattern in `local-named`

4 years agoFeat(logcheck): Update ignore pattern in `local-ssh`
Oleg Broytman [Sat, 16 Nov 2019 15:04:51 +0000 (18:04 +0300)]
Feat(logcheck): Update ignore pattern in `local-ssh`

4 years agoFeat(logcheck): Add `local-no-tty`
Oleg Broytman [Sat, 16 Nov 2019 15:04:51 +0000 (18:04 +0300)]
Feat(logcheck): Add `local-no-tty`

Ignore warnings from TUI programs like `links2` or `vim`.

4 years agoFeat: Improve task names
Oleg Broytman [Mon, 18 Nov 2019 17:12:47 +0000 (20:12 +0300)]
Feat: Improve task names

4 years agoFeat(logcheck): Add `local-gpm` to ignore warnings from `gpm`
Oleg Broytman [Sat, 16 Nov 2019 15:04:51 +0000 (18:04 +0300)]
Feat(logcheck): Add `local-gpm` to ignore warnings from `gpm`

4 years agoFeat(logcheck): Send mail to `root` instead of `logcheck`
Oleg Broytman [Sat, 16 Nov 2019 15:04:51 +0000 (18:04 +0300)]
Feat(logcheck): Send mail to `root` instead of `logcheck`

Replace `SENDMAILTO="logcheck"` with `SENDMAILTO="root"`.

4 years agoFeat(logcheck): Make titles more specific
Oleg Broytman [Sat, 16 Nov 2019 15:04:51 +0000 (18:04 +0300)]
Feat(logcheck): Make titles more specific

4 years agoFeat(logcheck): Add ignore patterns after upgrading to Debian 10
Oleg Broytman [Thu, 14 Nov 2019 12:28:01 +0000 (15:28 +0300)]
Feat(logcheck): Add ignore patterns after upgrading to Debian 10

4 years agoStyle(logcheck): Sort entries; remove empty lines
Oleg Broytman [Thu, 14 Nov 2019 22:31:36 +0000 (01:31 +0300)]
Style(logcheck): Sort entries; remove empty lines

4 years agoDocs: Update READMEs
Oleg Broytman [Tue, 5 Nov 2019 13:53:09 +0000 (16:53 +0300)]
Docs: Update READMEs

4 years agoFix(logcheck): Fix regexp syntax in `local-ssh`
Oleg Broytman [Mon, 4 Nov 2019 16:08:58 +0000 (19:08 +0300)]
Fix(logcheck): Fix regexp syntax in `local-ssh`

`logcheck` uses `grep -E` so unescaped parenthesis are used for grouping;
literal parenthesis must be escaped with backslash.

4 years agoFeat(sa-merge-all): Use `sa-merge-all.py` to merge dumps; use `chdir`
Oleg Broytman [Thu, 31 Oct 2019 21:15:27 +0000 (00:15 +0300)]
Feat(sa-merge-all): Use `sa-merge-all.py` to merge dumps; use `chdir`

4 years agoFeat(ansible/cleanup-tmp): Use args `chdir`; ignore errors with `failed_when`
Oleg Broytman [Thu, 31 Oct 2019 19:49:12 +0000 (22:49 +0300)]
Feat(ansible/cleanup-tmp): Use args `chdir`; ignore errors with `failed_when`

4 years agoFix(sa-merge-all): Fix file name (`.` -> `@`)
Oleg Broytman [Thu, 31 Oct 2019 13:21:50 +0000 (16:21 +0300)]
Fix(sa-merge-all): Fix file name (`.` -> `@`)

4 years agoFeat(sa-merge-all): Run `sa-learn --sync` before dump
Oleg Broytman [Thu, 31 Oct 2019 13:21:01 +0000 (16:21 +0300)]
Feat(sa-merge-all): Run `sa-learn --sync` before dump

4 years agoFeat(setup-usrlocal): Setup /usr/local/darkstat
Oleg Broytman [Mon, 30 Sep 2019 20:41:57 +0000 (23:41 +0300)]
Feat(setup-usrlocal): Setup /usr/local/darkstat

4 years agoFeat(remove-systemd): Run role instead of playbook with 1 task
Oleg Broytman [Mon, 16 Sep 2019 22:59:46 +0000 (01:59 +0300)]
Feat(remove-systemd): Run role instead of playbook with 1 task

4 years agoFix(sa-merge-all): Fix task name
Oleg Broytman [Mon, 16 Sep 2019 22:58:24 +0000 (01:58 +0300)]
Fix(sa-merge-all): Fix task name

4 years agoFix(python-dev-packages): Fix condition
Oleg Broytman [Tue, 3 Sep 2019 01:07:23 +0000 (04:07 +0300)]
Fix(python-dev-packages): Fix condition

4 years agoFix misspelled `Debian`
Oleg Broytman [Tue, 3 Sep 2019 01:07:03 +0000 (04:07 +0300)]
Fix misspelled `Debian`

4 years agoFeat(run-roles): Run a list of roles separated by comma
Oleg Broytman [Tue, 3 Sep 2019 00:32:22 +0000 (03:32 +0300)]
Feat(run-roles): Run a list of roles separated by comma

4 years agoFix(dev-packages): Do not install `git`
Oleg Broytman [Tue, 3 Sep 2019 00:02:02 +0000 (03:02 +0300)]
Fix(dev-packages): Do not install `git`

I need it less frequently even on developer workstations.

4 years agoFix(phd): Ignore segfault on Fedora
Oleg Broytman [Mon, 2 Sep 2019 20:32:42 +0000 (23:32 +0300)]
Fix(phd): Ignore segfault on Fedora

4 years agoFeat(adjtimex): Fix pool address at the second run
Oleg Broytman [Mon, 2 Sep 2019 19:38:29 +0000 (22:38 +0300)]
Feat(adjtimex): Fix pool address at the second run

4 years agoFeat(adjtimex): Run `ntpdate` at RedHat, `ntpdate-debian` at Debian
Oleg Broytman [Mon, 2 Sep 2019 19:37:35 +0000 (22:37 +0300)]
Feat(adjtimex): Run `ntpdate` at RedHat, `ntpdate-debian` at Debian

4 years agoFeat(remove-systemd) Split `remove-systemd` as a separate plabook
Oleg Broytman [Mon, 2 Sep 2019 19:35:06 +0000 (22:35 +0300)]
Feat(remove-systemd) Split `remove-systemd` as a separate plabook

This allows playbook `init-system2` to gather facts anew
getting that services now must be handled using SysV-init methods.

4 years agoFeat(init-system2): Reorder roles
Oleg Broytman [Mon, 2 Sep 2019 18:30:08 +0000 (21:30 +0300)]
Feat(init-system2): Reorder roles

4 years agoRename role `init-system2` -> `setup-usrlocal`
Oleg Broytman [Mon, 2 Sep 2019 18:28:14 +0000 (21:28 +0300)]
Rename role `init-system2` -> `setup-usrlocal`

4 years agoFeat: Combine Debian/RedHat playbooks and roles
Oleg Broytman [Mon, 2 Sep 2019 16:44:50 +0000 (19:44 +0300)]
Feat: Combine Debian/RedHat playbooks and roles

4 years agoFeat(firewall): Use handler instead of condition
Oleg Broytman [Sun, 1 Sep 2019 23:59:40 +0000 (02:59 +0300)]
Feat(firewall): Use handler instead of condition

4 years agoFeat(variables): Calculate Debian distribution
Oleg Broytman [Sun, 1 Sep 2019 23:41:44 +0000 (02:41 +0300)]
Feat(variables): Calculate Debian distribution

Ansible knows OS family and version, there is no need
to mark every host with variable `debian_distr`.

4 years agoFeat(python): Install dev packages to compile Python from sources
Oleg Broytman [Sun, 1 Sep 2019 18:44:41 +0000 (21:44 +0300)]
Feat(python): Install dev packages to compile Python from sources

Install development packages: headers and libraries.
Split roles `dev-packages` into `python-dev-packages`.

4 years agoFeat: Recognize OS type by `os_family`, not OS name
Oleg Broytman [Sun, 1 Sep 2019 15:19:40 +0000 (18:19 +0300)]
Feat: Recognize OS type by `os_family`, not OS name

There are too many OS names to recognize: Debian, (K/X)Ubuntu,
CentOS, Fedora, RedHat...

4 years agoFeat(ansible): Add playbook `show_facts`
Oleg Broytman [Sun, 1 Sep 2019 15:14:45 +0000 (18:14 +0300)]
Feat(ansible): Add playbook `show_facts`

4 years agoFeat(adjtimex): Install `adjtimex` and `ntpdate`
Oleg Broytman [Sun, 1 Sep 2019 14:43:32 +0000 (17:43 +0300)]
Feat(adjtimex): Install `adjtimex` and `ntpdate`

4 years agoFeat(adjtimex): Move to common roles
Oleg Broytman [Sun, 1 Sep 2019 14:30:45 +0000 (17:30 +0300)]
Feat(adjtimex): Move to common roles

4 years agoRemove `monthly-truncate-logs`
Oleg Broytman [Sat, 31 Aug 2019 22:14:39 +0000 (01:14 +0300)]
Remove `monthly-truncate-logs`

It's simple to implement this as a shell and run from cron.

4 years agoFeat(RedHat): Add RedHat and redhatoids playbooks and roles
Oleg Broytman [Sat, 31 Aug 2019 19:52:40 +0000 (22:52 +0300)]
Feat(RedHat): Add RedHat and redhatoids playbooks and roles

Tested with Fedora 30.

4 years agoFeat(sshd): In Debian the service is called `ssh`, otherwise `sshd`
Oleg Broytman [Sat, 31 Aug 2019 19:40:16 +0000 (22:40 +0300)]
Feat(sshd): In Debian the service is called `ssh`, otherwise `sshd`

4 years agoFeat: Move common playbooks and roles
Oleg Broytman [Sat, 31 Aug 2019 18:59:34 +0000 (21:59 +0300)]
Feat: Move common playbooks and roles

Some playbooks and roles are distribution-independent.

4 years agoFeat(apt): Add option `cache_valid_time: 3600`
Oleg Broytman [Thu, 29 Aug 2019 17:52:31 +0000 (20:52 +0300)]
Feat(apt): Add option `cache_valid_time: 3600`

Avoid unnecessary updates.

4 years agoFeat(apt): Remove option `purge`
Oleg Broytman [Thu, 29 Aug 2019 17:46:56 +0000 (20:46 +0300)]
Feat(apt): Remove option `purge`

It's used only with `state: absent`.

4 years agoAdd `debian/README.txt`
Oleg Broytman [Thu, 29 Aug 2019 15:31:18 +0000 (18:31 +0300)]
Add `debian/README.txt`

4 years agoRename playbooks: debian-* -> debian/*
Oleg Broytman [Thu, 29 Aug 2019 15:29:31 +0000 (18:29 +0300)]
Rename playbooks: debian-* -> debian/*

4 years agoFeat(sa-merge-all): Merge SpamAssassin databases
Oleg Broytman [Mon, 26 Aug 2019 15:09:08 +0000 (18:09 +0300)]
Feat(sa-merge-all): Merge SpamAssassin databases

4 years agoFeat(vbox-inventory): Remove `[servers]`
Oleg Broytman [Mon, 26 Aug 2019 15:07:07 +0000 (18:07 +0300)]
Feat(vbox-inventory): Remove `[servers]`

No need to group virtual hosts,
they're automatically grouped to group `all`.

4 years agoFeat(logcheck/kernel): Ignore `ncpfs: ncp_evict_inode: could not close`
Oleg Broytman [Sun, 18 Aug 2019 18:13:00 +0000 (21:13 +0300)]
Feat(logcheck/kernel): Ignore `ncpfs: ncp_evict_inode: could not close`

4 years agoFeat(logcheck/kernel): Sort patterns
Oleg Broytman [Sun, 18 Aug 2019 18:12:19 +0000 (21:12 +0300)]
Feat(logcheck/kernel): Sort patterns

4 years agoFeat(logcheck/samba): Ignore `session opened for user`
Oleg Broytman [Sun, 18 Aug 2019 18:09:32 +0000 (21:09 +0300)]
Feat(logcheck/samba): Ignore `session opened for user`

4 years agoFix(vbox-inventory): Set `ansible_port` for every host
Oleg Broytman [Thu, 15 Aug 2019 21:00:51 +0000 (00:00 +0300)]
Fix(vbox-inventory): Set `ansible_port` for every host

Without this `synchronize` runs `rsync`
to sync from `localhost` to itself.

4 years agoFeat(scripts): Add `[...params...]` to usage message
Oleg Broytman [Thu, 15 Aug 2019 10:31:54 +0000 (13:31 +0300)]
Feat(scripts): Add `[...params...]` to usage message

4 years agoFix(root): Use absolute path
Oleg Broytman [Mon, 12 Aug 2019 02:42:37 +0000 (05:42 +0300)]
Fix(root): Use absolute path

4 years agoFix(dehydrated): Fix misspelling
Oleg Broytman [Mon, 12 Aug 2019 02:41:19 +0000 (05:41 +0300)]
Fix(dehydrated): Fix misspelling

4 years agoRefactor(vbox-inventory): Restructure variables
Oleg Broytman [Mon, 12 Aug 2019 01:38:58 +0000 (04:38 +0300)]
Refactor(vbox-inventory): Restructure variables

4 years agoFeat(ansible/list-tmp): Count temp directories
Oleg Broytman [Tue, 6 Aug 2019 22:25:08 +0000 (01:25 +0300)]
Feat(ansible/list-tmp): Count temp directories

4 years agoStyle(init-system): `loop` over `when`
Oleg Broytman [Tue, 6 Aug 2019 22:20:43 +0000 (01:20 +0300)]
Style(init-system):  `loop` over `when`

4 years agoFeat(dev-packages): Install development packages
Oleg Broytman [Tue, 6 Aug 2019 20:29:38 +0000 (23:29 +0300)]
Feat(dev-packages): Install development packages

4 years agoFeat(init-system): Install less software packages
Oleg Broytman [Tue, 6 Aug 2019 20:26:17 +0000 (23:26 +0300)]
Feat(init-system): Install less software packages

Install more software packages in a separate role `packages`.

4 years agoFeat(init-system): Skip upgrading Python packages
Oleg Broytman [Tue, 6 Aug 2019 20:08:28 +0000 (23:08 +0300)]
Feat(init-system): Skip upgrading Python packages

Do not upgrade Python packages if python has already been installed.

4 years agoFix(remove-systemd): Fix permissions
Oleg Broytman [Tue, 6 Aug 2019 20:05:38 +0000 (23:05 +0300)]
Fix(remove-systemd): Fix permissions

4 years agofeat(vbox-inventory): Separate Debian 9 and Debian 10 vboxes
Oleg Broytman [Tue, 6 Aug 2019 18:21:36 +0000 (21:21 +0300)]
feat(vbox-inventory): Separate Debian 9 and Debian 10 vboxes

4 years agofeat(vbox-inventory): Use HTTP mirror for Debian 9
Oleg Broytman [Tue, 6 Aug 2019 17:35:38 +0000 (20:35 +0300)]
feat(vbox-inventory): Use HTTP mirror for Debian 9

4 years agoFeat(init-system): Install `python-setuptools` for Debian 9
Oleg Broytman [Tue, 6 Aug 2019 17:02:11 +0000 (20:02 +0300)]
Feat(init-system): Install `python-setuptools` for Debian 9

4 years agoFeat(init-system): Install `apt-transport-https` for Debian 9
Oleg Broytman [Tue, 6 Aug 2019 17:00:43 +0000 (20:00 +0300)]
Feat(init-system): Install `apt-transport-https` for Debian 9

4 years agoFeat(init-system): Upgrade Python packages
Oleg Broytman [Tue, 6 Aug 2019 15:46:00 +0000 (18:46 +0300)]
Feat(init-system): Upgrade Python packages

4 years agoFeat(init-system): Install `python-pip`
Oleg Broytman [Tue, 6 Aug 2019 15:37:23 +0000 (18:37 +0300)]
Feat(init-system): Install `python-pip`

4 years agoFeat(adjtimex): Convert script `adjtimex.sh` to a template
Oleg Broytman [Sun, 4 Aug 2019 18:49:27 +0000 (21:49 +0300)]
Feat(adjtimex): Convert script `adjtimex.sh` to a template

4 years agoFeat(adjtimex): Convert playbook `adjtimex.yml` to a role
Oleg Broytman [Sun, 4 Aug 2019 18:38:47 +0000 (21:38 +0300)]
Feat(adjtimex): Convert playbook `adjtimex.yml` to a role

4 years agoFeat(add-dns-domain): Prepend one empty line before the zone
Oleg Broytman [Sun, 4 Aug 2019 09:46:14 +0000 (12:46 +0300)]
Feat(add-dns-domain): Prepend one empty line before the zone

4 years agoFix: Set `directory_mode` for recursive copying
Oleg Broytman [Sun, 4 Aug 2019 09:28:42 +0000 (12:28 +0300)]
Fix: Set `directory_mode` for recursive copying

4 years agoFeat(init-local-phd): Install X11
Oleg Broytman [Sun, 4 Aug 2019 08:24:32 +0000 (11:24 +0300)]
Feat(init-local-phd): Install X11

4 years agoFix(monthly-truncate-logs): Use absolute paths
Oleg Broytman [Thu, 1 Aug 2019 10:01:29 +0000 (13:01 +0300)]
Fix(monthly-truncate-logs): Use absolute paths

4 years agoFix(apache): Remove mentions of me
Oleg Broytman [Wed, 31 Jul 2019 16:50:38 +0000 (19:50 +0300)]
Fix(apache): Remove mentions of me

Make the config more generic.

4 years agoFeat(logcheck): Disable `INTRO`
Oleg Broytman [Wed, 31 Jul 2019 16:48:10 +0000 (19:48 +0300)]
Feat(logcheck): Disable `INTRO`

4 years agoFeat(init-system): Install `fetchmail`
Oleg Broytman [Wed, 31 Jul 2019 16:30:08 +0000 (19:30 +0300)]
Feat(init-system): Install `fetchmail`

4 years agoFeat(apache): Setup default host
Oleg Broytman [Wed, 31 Jul 2019 16:14:47 +0000 (19:14 +0300)]
Feat(apache): Setup default host

4 years agoFeat(phd): Direct root mail to me
Oleg Broytman [Wed, 31 Jul 2019 16:09:11 +0000 (19:09 +0300)]
Feat(phd): Direct root mail to me

Add `root: phd` in `/etc/aliases`.

4 years agoRefactor(phd): Merge `create.yml` back into `main.yml`
Oleg Broytman [Wed, 31 Jul 2019 16:05:55 +0000 (19:05 +0300)]
Refactor(phd): Merge `create.yml` back into `main.yml`

4 years agoFeat: Add `init-logcheck`
Oleg Broytman [Wed, 31 Jul 2019 16:01:24 +0000 (19:01 +0300)]
Feat: Add `init-logcheck`

Fast version of role logcheck to be used in dependencies.

4 years agoFeat(logcheck): Add yet another `pam` pattern
Oleg Broytman [Wed, 31 Jul 2019 12:11:43 +0000 (15:11 +0300)]
Feat(logcheck): Add yet another `pam` pattern

4 years agoFeat(add-dns-domain): Add the domain to `/etc/resolv.conf`
Oleg Broytman [Tue, 30 Jul 2019 18:39:01 +0000 (21:39 +0300)]
Feat(add-dns-domain): Add the domain to `/etc/resolv.conf`

4 years agoFeat(named): Setup `/etc/resolv.conf` to use installed BIND
Oleg Broytman [Tue, 30 Jul 2019 18:32:00 +0000 (21:32 +0300)]
Feat(named): Setup `/etc/resolv.conf` to use installed BIND

4 years agoRefactor: Join tasks into blocks to factor out conditions
Oleg Broytman [Tue, 30 Jul 2019 18:27:32 +0000 (21:27 +0300)]
Refactor: Join tasks into blocks to factor out conditions

4 years agoFix(apache): Add dummy `ServerName` to start `Apache`
Oleg Broytman [Tue, 30 Jul 2019 17:42:36 +0000 (20:42 +0300)]
Fix(apache): Add dummy `ServerName` to start `Apache`

Change it to the real host name when it is available.

4 years agoFeat(init-system): Install text mode browsers 'links2' and 'elinks'
Oleg Broytman [Tue, 30 Jul 2019 17:31:10 +0000 (20:31 +0300)]
Feat(init-system): Install text mode browsers 'links2' and 'elinks'

4 years agoFix(named): Fix conditions
Oleg Broytman [Tue, 30 Jul 2019 17:18:07 +0000 (20:18 +0300)]
Fix(named): Fix conditions

Check 3 conditions: the file is absent
(`grep` reports error but stdout is empty),
the file exists but doesn't contain the line
(`grep` returns error code 1 and stdout is '0'),
the file contains the line (stdout contains the count >= 1).

4 years agoFix(named): Become root
Oleg Broytman [Tue, 30 Jul 2019 17:02:37 +0000 (20:02 +0300)]
Fix(named): Become root

The file `/etc/bind/named.conf.options`
is not readable for the current user.

4 years agoFix(named): Fix regexp
Oleg Broytman [Tue, 30 Jul 2019 17:02:16 +0000 (20:02 +0300)]
Fix(named): Fix regexp

4 years agoRefactor(add-dns-domain): Remove excessive empty lines
Oleg Broytman [Tue, 30 Jul 2019 16:28:24 +0000 (19:28 +0300)]
Refactor(add-dns-domain): Remove excessive empty lines

4 years agoFix(add-apache-vhost): Fix SSL files directives
Oleg Broytman [Tue, 30 Jul 2019 16:14:26 +0000 (19:14 +0300)]
Fix(add-apache-vhost): Fix SSL files directives

The files are not created yet. Uncomment the directives
when the files will be created by a certification authority
(like LetsEncrypt and its client `dehydrated`).

4 years agoFix(add-apache-vhost): Fix directories
Oleg Broytman [Tue, 30 Jul 2019 16:13:37 +0000 (19:13 +0300)]
Fix(add-apache-vhost): Fix directories

4 years agoRefactor(add-apache-vhost): Move dehydrated templates
Oleg Broytman [Tue, 30 Jul 2019 16:10:10 +0000 (19:10 +0300)]
Refactor(add-apache-vhost): Move dehydrated templates

Move dehydrated templates into a separate directory.

4 years agoFix(init-system2): Fix permissions
Oleg Broytman [Tue, 30 Jul 2019 16:05:32 +0000 (19:05 +0300)]
Fix(init-system2): Fix permissions

4 years agoFeat: Add `changed_when`
Oleg Broytman [Mon, 29 Jul 2019 22:58:58 +0000 (01:58 +0300)]
Feat: Add `changed_when`

4 years agoFeat: Gather facts and use default IPv4 address
Oleg Broytman [Mon, 29 Jul 2019 22:45:43 +0000 (01:45 +0300)]
Feat: Gather facts and use default IPv4 address

4 years agoFeat: Add role to add a DNS domain to named
Oleg Broytman [Mon, 29 Jul 2019 22:02:20 +0000 (01:02 +0300)]
Feat: Add role to add a DNS domain to named

4 years agoFix(named): Fix copy/paste error
Oleg Broytman [Mon, 29 Jul 2019 22:00:55 +0000 (01:00 +0300)]
Fix(named): Fix copy/paste error

4 years agoFeat: Add role `named` to setup `BIND 9`
Oleg Broytman [Mon, 29 Jul 2019 18:32:15 +0000 (21:32 +0300)]
Feat: Add role `named` to setup `BIND 9`

4 years agoFix: Become root to reload services
Oleg Broytman [Mon, 29 Jul 2019 18:28:12 +0000 (21:28 +0300)]
Fix: Become root to reload services