]> git.phdru.name Git - ansible.git/log
ansible.git
2 years agoFeat(logcheck): Update `local-ssh`
Oleg Broytman [Thu, 2 Jun 2022 21:05:56 +0000 (00:05 +0300)]
Feat(logcheck): Update `local-ssh`

2 years agoFeat(adjtimex): Rewrite `adjtimex.sh`
Oleg Broytman [Thu, 26 May 2022 11:42:26 +0000 (14:42 +0300)]
Feat(adjtimex): Rewrite `adjtimex.sh`

I'm disappointed with `adjtimex --log/--review`
so I do manual tweaking now.

The script just synchronize system and hardware clocks.

2 years agoFeat(adjtimex): Install `hwclock` from `util-linux`
Oleg Broytman [Sat, 14 May 2022 03:09:17 +0000 (06:09 +0300)]
Feat(adjtimex): Install `hwclock` from `util-linux`

2 years agoFeat(adjtimex): Use `hwclock --update-drift`
Oleg Broytman [Sat, 7 May 2022 14:19:44 +0000 (17:19 +0300)]
Feat(adjtimex): Use `hwclock --update-drift`

2 years agoRefactor(cleanup-tmp.sh): Use `ansible --list-hosts` instead of `run-hosts -L`
Oleg Broytman [Tue, 3 May 2022 22:15:12 +0000 (01:15 +0300)]
Refactor(cleanup-tmp.sh): Use `ansible --list-hosts` instead of `run-hosts -L`

2 years agoFix(ansible/cleanup-tmp.sh): `.ansible` is at `$HOME`
Oleg Broytman [Tue, 3 May 2022 11:44:14 +0000 (14:44 +0300)]
Fix(ansible/cleanup-tmp.sh): `.ansible` is at `$HOME`

2 years agoFix(ansible/cleanup-tmp.sh): Parameter was changed in `run-hosts`
Oleg Broytman [Tue, 3 May 2022 11:42:08 +0000 (14:42 +0300)]
Fix(ansible/cleanup-tmp.sh): Parameter was changed in `run-hosts`

It's no longer "echo", it's "list hosts".

2 years agoFeat(packages): Install `socat`
Oleg Broytman [Mon, 25 Apr 2022 13:14:28 +0000 (16:14 +0300)]
Feat(packages): Install `socat`

2 years agoFix(debian/email): Split handlers
Oleg Broytman [Mon, 25 Apr 2022 12:10:46 +0000 (15:10 +0300)]
Fix(debian/email): Split handlers

Roles don't allow inline handlers.

2 years agoFeat(init-system): Remove `ntp`
Oleg Broytman [Mon, 25 Apr 2022 02:14:59 +0000 (05:14 +0300)]
Feat(init-system): Remove `ntp`

2 years agoFeat(debian/init-system): Start a shared connection with a password
Oleg Broytman [Mon, 25 Apr 2022 01:15:05 +0000 (04:15 +0300)]
Feat(debian/init-system): Start a shared connection with a password

2 years agoFeat(roles/qemu): Install QEMU
Oleg Broytman [Wed, 20 Apr 2022 11:41:46 +0000 (14:41 +0300)]
Feat(roles/qemu): Install QEMU

2 years agoFeat(roles/docker): Install Docker (currently Debian-only)
Oleg Broytman [Mon, 11 Apr 2022 14:33:27 +0000 (17:33 +0300)]
Feat(roles/docker): Install Docker (currently Debian-only)

2 years agoFeat(debian/security): Configure `/etc/chkrootkit.conf`
Oleg Broytman [Sat, 9 Apr 2022 09:50:22 +0000 (12:50 +0300)]
Feat(debian/security): Configure `/etc/chkrootkit.conf`

Enable daily run.

2 years agoFeat(logcheck): Update `local-named`
Oleg Broytman [Sun, 27 Mar 2022 22:21:12 +0000 (01:21 +0300)]
Feat(logcheck): Update `local-named`

2 years agoFeat(wireguard): Install WireGuard
Oleg Broytman [Sat, 26 Mar 2022 16:22:22 +0000 (19:22 +0300)]
Feat(wireguard): Install WireGuard

2 years agoFix(firewall): `iptables.sh` does its own restart
Oleg Broytman [Sat, 26 Mar 2022 16:21:26 +0000 (19:21 +0300)]
Fix(firewall): `iptables.sh` does its own restart

2 years agoFeat(logcheck): Update `local-named`
Oleg Broytman [Fri, 25 Mar 2022 03:33:23 +0000 (06:33 +0300)]
Feat(logcheck): Update `local-named`

2 years agoFeat(update-root): Sync `ssh/known_hosts`
Oleg Broytman [Thu, 24 Mar 2022 00:26:32 +0000 (03:26 +0300)]
Feat(update-root): Sync `ssh/known_hosts`

2 years agoFeat(playbooks/fetch-push): Fetch/push a list of files
Oleg Broytman [Wed, 23 Mar 2022 02:04:46 +0000 (05:04 +0300)]
Feat(playbooks/fetch-push): Fetch/push a list of files

File names are separated by a comma, no space.

2 years agoFeat(playbooks/fetch-push): Fetch/push a file
Oleg Broytman [Wed, 23 Mar 2022 02:02:54 +0000 (05:02 +0300)]
Feat(playbooks/fetch-push): Fetch/push a file

Backup a remote file. Update it back.

2 years agoFeat(logcheck): Update `local-named`
Oleg Broytman [Fri, 18 Mar 2022 20:08:39 +0000 (23:08 +0300)]
Feat(logcheck): Update `local-named`

2 years agoFix(debian/named): Use IP instead of name
Oleg Broytman [Sun, 13 Mar 2022 09:28:32 +0000 (12:28 +0300)]
Fix(debian/named): Use IP instead of name

In `named` config it's better not to resolve names, even `localhost`.

2 years agoFeat(debian/gitweb): Install and configure `gitweb`
Oleg Broytman [Fri, 11 Mar 2022 21:55:19 +0000 (00:55 +0300)]
Feat(debian/gitweb): Install and configure `gitweb`

2 years agoFeat(playbooks/debian): Pass the host to the scripts
Oleg Broytman [Fri, 11 Mar 2022 21:53:46 +0000 (00:53 +0300)]
Feat(playbooks/debian): Pass the host to the scripts

2 years agoFeat(debian/named): Insert IP address
Oleg Broytman [Fri, 11 Mar 2022 01:43:36 +0000 (04:43 +0300)]
Feat(debian/named): Insert IP address

Insert the default IP address into `named.conf.options`.

2 years agoFeat(debian/email): Configure `/etc/default/spamassassin`
Oleg Broytman [Fri, 11 Mar 2022 00:56:24 +0000 (03:56 +0300)]
Feat(debian/email): Configure `/etc/default/spamassassin`

Add `--socketpath`.

2 years agoFeat(debian/email): Configure email: `exim` + `spamassassin`
Oleg Broytman [Fri, 11 Mar 2022 00:34:47 +0000 (03:34 +0300)]
Feat(debian/email): Configure email: `exim` + `spamassassin`

2 years agoFix(debian/security): Remove `debsecan`
Oleg Broytman [Fri, 11 Mar 2022 00:22:13 +0000 (03:22 +0300)]
Fix(debian/security): Remove `debsecan`

Too noisy and not very helpful.

2 years agoFeat(packages): Install `make`
Oleg Broytman [Thu, 10 Mar 2022 11:46:52 +0000 (14:46 +0300)]
Feat(packages): Install `make`

Quite often it's used outside of development.

2 years agoFix(logcheck): Fix `local-ssh` pattern
Oleg Broytman [Wed, 9 Mar 2022 15:32:18 +0000 (18:32 +0300)]
Fix(logcheck): Fix `local-ssh` pattern

2 years agoFeat(debian/security): Configure Debian security checks
Oleg Broytman [Wed, 9 Mar 2022 04:37:25 +0000 (07:37 +0300)]
Feat(debian/security): Configure Debian security checks

Install `chkrootkit` and `debsecan`.

2 years agoFix(adjtimex): Remove `ntpd` installed as a dependency
Oleg Broytman [Tue, 8 Mar 2022 19:58:00 +0000 (22:58 +0300)]
Fix(adjtimex): Remove `ntpd` installed as a dependency

2 years agoFix(python-packages): There is no `python-openssl` in Debian 11
Oleg Broytman [Tue, 8 Mar 2022 19:51:57 +0000 (22:51 +0300)]
Fix(python-packages): There is no `python-openssl` in Debian 11

2 years agoFix(python-packages): Install `python-pip`
Oleg Broytman [Tue, 8 Mar 2022 19:27:32 +0000 (22:27 +0300)]
Fix(python-packages): Install `python-pip`

In Debian 11 the package is named `python-pip-whl`.

2 years agoFix(root): Remove '.bash_history'
Oleg Broytman [Tue, 8 Mar 2022 18:48:10 +0000 (21:48 +0300)]
Fix(root): Remove '.bash_history'

Ansible doesn't allow to change type from file to symlink.

2 years agoFeat(packages): Install `mlocate`
Oleg Broytman [Mon, 7 Mar 2022 07:59:18 +0000 (10:59 +0300)]
Feat(packages): Install `mlocate`

2 years agoFix(add-dns-domain): Fix service name
Oleg Broytman [Mon, 7 Mar 2022 07:24:26 +0000 (10:24 +0300)]
Fix(add-dns-domain): Fix service name

Service name for BIND9 is `named`.

2 years agoFeat(packages): Install `calendar` and `net-tools`
Oleg Broytman [Sun, 6 Mar 2022 18:23:03 +0000 (21:23 +0300)]
Feat(packages): Install `calendar` and `net-tools`

2 years agoFix(debian/firewall): Install `iptables`
Oleg Broytman [Sun, 6 Mar 2022 18:16:00 +0000 (21:16 +0300)]
Fix(debian/firewall): Install `iptables`

2 years agoFeat(roles/python-packages): Install `python-is-python2`
Oleg Broytman [Sun, 6 Mar 2022 17:49:46 +0000 (20:49 +0300)]
Feat(roles/python-packages): Install `python-is-python2`

2 years agoFix(roles/init-system/templates/sources.list): Recognize Debian 11
Oleg Broytman [Sun, 6 Mar 2022 17:13:20 +0000 (20:13 +0300)]
Fix(roles/init-system/templates/sources.list): Recognize Debian 11

2 years agoFix(playbooks/init-system2): Fix syntax
Oleg Broytman [Sun, 6 Mar 2022 17:11:38 +0000 (20:11 +0300)]
Fix(playbooks/init-system2): Fix syntax

`when:` condition requires `role:`

2 years agoFix(playbooks/debian): Fix path to the roles
Oleg Broytman [Sun, 6 Mar 2022 17:10:56 +0000 (20:10 +0300)]
Fix(playbooks/debian): Fix path to the roles

2 years agoFeat(playbooks/*/init-system.sh): Add user `phd`
Oleg Broytman [Sun, 6 Mar 2022 17:09:29 +0000 (20:09 +0300)]
Feat(playbooks/*/init-system.sh): Add user `phd`

Ignore errors if the user already exists.

2 years agoFix(postgres): Install `libpq-dev`
Oleg Broytman [Wed, 23 Feb 2022 02:35:10 +0000 (05:35 +0300)]
Fix(postgres): Install `libpq-dev`

2 years agoFeat(logcheck): Update `local-ssh`
Oleg Broytman [Fri, 24 Dec 2021 12:15:51 +0000 (15:15 +0300)]
Feat(logcheck): Update `local-ssh`

2 years agoFeat(logcheck): Update `local-named`
Oleg Broytman [Sat, 18 Dec 2021 14:18:27 +0000 (17:18 +0300)]
Feat(logcheck): Update `local-named`

3 years agoFeat(init-system/templates/sources.list): Add security URL
Oleg Broytman [Mon, 22 Nov 2021 17:59:15 +0000 (20:59 +0300)]
Feat(init-system/templates/sources.list): Add security URL

3 years agoFix(init-system/templates/sources.list): Fix sections order
Oleg Broytman [Mon, 22 Nov 2021 17:57:59 +0000 (20:57 +0300)]
Fix(init-system/templates/sources.list): Fix sections order

`main` `contrib` `non-free`

3 years agoFeat(logcheck): Update `local-ssh`
Oleg Broytman [Wed, 27 Oct 2021 13:27:25 +0000 (16:27 +0300)]
Feat(logcheck): Update `local-ssh`

3 years agoFeat(logcheck): Update `local-ssh`
Oleg Broytman [Wed, 27 Oct 2021 13:27:25 +0000 (16:27 +0300)]
Feat(logcheck): Update `local-ssh`

3 years agoFeat: Module `synchronize` was moved to `ansible.posix` namespace
Oleg Broytman [Mon, 25 Oct 2021 12:18:14 +0000 (15:18 +0300)]
Feat: Module `synchronize` was moved to `ansible.posix` namespace

3 years agoFeat(logcheck): Update `local-ssh`
Oleg Broytman [Sun, 10 Oct 2021 15:12:46 +0000 (18:12 +0300)]
Feat(logcheck): Update `local-ssh`

3 years agoFeat(logcheck): Update `local-named` and `local-ssh` for Debian 11
Oleg Broytman [Sat, 2 Oct 2021 10:13:33 +0000 (13:13 +0300)]
Feat(logcheck): Update `local-named` and `local-ssh` for Debian 11

3 years agoFeat(logcheck/local-named): Message format was changed
Oleg Broytman [Fri, 1 Oct 2021 16:25:17 +0000 (19:25 +0300)]
Feat(logcheck/local-named): Message format was changed

3 years agoFeat(cleanup-tmp.sh): Remove option `-4` from `ssh`
Oleg Broytman [Fri, 1 Oct 2021 15:58:59 +0000 (18:58 +0300)]
Feat(cleanup-tmp.sh): Remove option `-4` from `ssh`

3 years agoFeat(logcheck): Update `local-ssh` for Debian 11
Oleg Broytman [Wed, 29 Sep 2021 07:04:32 +0000 (10:04 +0300)]
Feat(logcheck): Update `local-ssh` for Debian 11

3 years agoFeat(logcheck): Add `local-apache2` for Debian 11
Oleg Broytman [Wed, 29 Sep 2021 05:10:55 +0000 (08:10 +0300)]
Feat(logcheck): Add `local-apache2` for Debian 11

3 years agoFeat(logcheck/local-ssh): Ignore reset on send
Oleg Broytman [Tue, 28 Sep 2021 14:04:27 +0000 (17:04 +0300)]
Feat(logcheck/local-ssh): Ignore reset on send

3 years agoFeat(logcheck/local-ssh): Ignore connection errors in SOCKS5 proxy
Oleg Broytman [Tue, 28 Sep 2021 11:07:37 +0000 (14:07 +0300)]
Feat(logcheck/local-ssh): Ignore connection errors in SOCKS5 proxy

3 years agoFeat(logcheck): Update `local-ssh` for Debian 11
Oleg Broytman [Mon, 27 Sep 2021 15:36:29 +0000 (18:36 +0300)]
Feat(logcheck): Update `local-ssh` for Debian 11

3 years agoFix(init-system/templates/sources.list): Fix security distr
Oleg Broytman [Mon, 27 Sep 2021 13:34:52 +0000 (16:34 +0300)]
Fix(init-system/templates/sources.list): Fix security distr

Debian 11 `bullseye` changed distribution layout.

3 years agoUse `run-hosts -e`
Oleg Broytman [Thu, 23 Sep 2021 05:03:59 +0000 (08:03 +0300)]
Use `run-hosts -e`

3 years agoFeat(logcheck): Extend ssh rule
Oleg Broytman [Mon, 29 Mar 2021 19:12:07 +0000 (22:12 +0300)]
Feat(logcheck): Extend ssh rule

3 years agoFeat(logcheck): Update `local-ssh`
Oleg Broytman [Sun, 31 Jan 2021 19:42:21 +0000 (22:42 +0300)]
Feat(logcheck): Update `local-ssh`

3 years agoFeat(logcheck): Update `local-ssh`
Oleg Broytman [Thu, 14 Jan 2021 13:04:37 +0000 (16:04 +0300)]
Feat(logcheck): Update `local-ssh`

3 years agoFeat(logcheck): Ignore messages from `gnome-keyring-daemon`
Oleg Broytman [Wed, 9 Dec 2020 11:40:42 +0000 (14:40 +0300)]
Feat(logcheck): Ignore messages from `gnome-keyring-daemon`

3 years agoFeat: Install SMB/CIFS client/server packages
Oleg Broytman [Sat, 28 Nov 2020 16:06:47 +0000 (19:06 +0300)]
Feat: Install SMB/CIFS client/server packages

4 years agoFeat: Add role `mariadb` to install MariaDB
Oleg Broytman [Sat, 21 Nov 2020 11:24:30 +0000 (14:24 +0300)]
Feat: Add role `mariadb` to install MariaDB

Install MariaDB client, server and development libs for Debian.

4 years agoFix minor misspellings
Oleg Broytman [Sat, 21 Nov 2020 11:14:55 +0000 (14:14 +0300)]
Fix minor misspellings

4 years agoFix(logcheck): Fix pattern in `local-named`
Oleg Broytman [Mon, 16 Nov 2020 21:05:36 +0000 (00:05 +0300)]
Fix(logcheck): Fix pattern in `local-named`

4 years agoFeat(init-system): Always update `/etc/apt/sources.list`
Oleg Broytman [Mon, 19 Oct 2020 18:49:19 +0000 (21:49 +0300)]
Feat(init-system): Always update `/etc/apt/sources.list`

Module `template` doesn't overwrite identical file.

4 years agoFeat(logcheck): Add a rule for `local-wpa_supplicant`
Oleg Broytman [Sat, 17 Oct 2020 10:08:02 +0000 (13:08 +0300)]
Feat(logcheck): Add a rule for `local-wpa_supplicant`

4 years agoRefactor(init-local-phd): Add `jmtpfs` FUSE filesystems
Oleg Broytman [Sat, 10 Oct 2020 17:06:18 +0000 (20:06 +0300)]
Refactor(init-local-phd): Add `jmtpfs` FUSE filesystems

4 years agoRefactor(init-local-phd): Split FUSE filesystems
Oleg Broytman [Sat, 10 Oct 2020 17:04:46 +0000 (20:04 +0300)]
Refactor(init-local-phd): Split FUSE filesystems

4 years agoFeat(logcheck): Ignore expired RRSIG
Oleg Broytman [Sat, 3 Oct 2020 00:10:21 +0000 (03:10 +0300)]
Feat(logcheck): Ignore expired RRSIG

4 years agoFeat(logcheck): Ignore a message from `wpa_supplicant`
Oleg Broytman [Mon, 17 Aug 2020 10:16:13 +0000 (13:16 +0300)]
Feat(logcheck): Ignore a message from `wpa_supplicant`

4 years agoFeat(adjtimex): Warm up DNS
Oleg Broytman [Sun, 2 Aug 2020 10:27:06 +0000 (13:27 +0300)]
Feat(adjtimex): Warm up DNS

4 years agoFeat(logcheck): Ignore `dhcpclient`/`dhcpd` messages
Oleg Broytman [Sat, 1 Aug 2020 13:41:20 +0000 (16:41 +0300)]
Feat(logcheck): Ignore `dhcpclient`/`dhcpd` messages

4 years agoFeat(packages): Install `unrar`
Oleg Broytman [Tue, 28 Jul 2020 04:33:35 +0000 (07:33 +0300)]
Feat(packages): Install `unrar`

4 years agoFeat(postgres): Install dev packages to compile Python drivers
Oleg Broytman [Mon, 22 Jun 2020 15:44:47 +0000 (18:44 +0300)]
Feat(postgres): Install dev packages to compile Python drivers

4 years agoFeat(logcheck): Ignore a kernel message from `systemd-udevd`
Oleg Broytman [Mon, 22 Jun 2020 11:09:08 +0000 (14:09 +0300)]
Feat(logcheck): Ignore a kernel message from `systemd-udevd`

4 years agoFeat(update-root): Rename `short_curdir` to `bash_prompt`
Oleg Broytman [Fri, 12 Jun 2020 14:43:12 +0000 (17:43 +0300)]
Feat(update-root): Rename `short_curdir` to `bash_prompt`

There are now more than 1 functions there.

4 years agoFeat(update-root): Update `~root/admin/prog/short_curdir`
Oleg Broytman [Thu, 11 Jun 2020 13:00:38 +0000 (16:00 +0300)]
Feat(update-root): Update `~root/admin/prog/short_curdir`

4 years agoFeat(run-playbook): Force non-folding mode in `less`
Oleg Broytman [Wed, 10 Jun 2020 17:30:25 +0000 (20:30 +0300)]
Feat(run-playbook): Force non-folding mode in `less`

4 years agoFeat(init-local-phd): Replace `qpdfview` back to `evince`
Oleg Broytman [Wed, 3 Jun 2020 11:07:15 +0000 (14:07 +0300)]
Feat(init-local-phd): Replace `qpdfview` back to `evince`

`qpdfview` doesn't work with non-UTF8 paths.

4 years agoFeat(init-local-phd): Install office document viewers
Oleg Broytman [Tue, 2 Jun 2020 14:01:13 +0000 (17:01 +0300)]
Feat(init-local-phd): Install office document viewers

4 years agoFeat(logcheck): Silent excessive dbus errors
Oleg Broytman [Fri, 29 May 2020 23:08:31 +0000 (02:08 +0300)]
Feat(logcheck): Silent excessive dbus errors

4 years agoFeat(logcheck): Silent excessive pcieport errors
Oleg Broytman [Fri, 29 May 2020 23:08:31 +0000 (02:08 +0300)]
Feat(logcheck): Silent excessive pcieport errors

4 years agoFeat(python-packages): Install `auditwheel`
Oleg Broytman [Sat, 9 May 2020 22:29:37 +0000 (01:29 +0300)]
Feat(python-packages): Install `auditwheel`

Install `wheel` and `auditwheel` that correspond to each other.

4 years agoFeat(python-packages): Install `patchelf` for `auditwheel`
Oleg Broytman [Sat, 9 May 2020 22:28:45 +0000 (01:28 +0300)]
Feat(python-packages): Install `patchelf` for `auditwheel`

4 years agoFeat(init-local-phd): Install pptp client
Oleg Broytman [Sun, 3 May 2020 16:38:40 +0000 (19:38 +0300)]
Feat(init-local-phd): Install pptp client

4 years agoFeat(init-local-phd): Install VirtualBox
Oleg Broytman [Fri, 1 May 2020 10:08:40 +0000 (13:08 +0300)]
Feat(init-local-phd): Install VirtualBox

4 years agoFeat(logcheck): Ignore `gcr-prompter`
Oleg Broytman [Wed, 29 Apr 2020 06:32:42 +0000 (09:32 +0300)]
Feat(logcheck): Ignore `gcr-prompter`

4 years agoFeat(init-system): Install `whois`
Oleg Broytman [Tue, 28 Apr 2020 09:02:50 +0000 (12:02 +0300)]
Feat(init-system): Install `whois`

4 years agoFeat(root): Remove `force: no` to update some files
Oleg Broytman [Mon, 27 Apr 2020 10:54:59 +0000 (13:54 +0300)]
Feat(root): Remove `force: no` to update some files

4 years agoRefactor: Remove excessive `force: yes` - this is the default
Oleg Broytman [Mon, 27 Apr 2020 10:54:11 +0000 (13:54 +0300)]
Refactor: Remove excessive `force: yes` - this is the default

4 years agoFeat(init-local-phd): Install bluetooth packages
Oleg Broytman [Sun, 26 Apr 2020 00:51:00 +0000 (03:51 +0300)]
Feat(init-local-phd): Install bluetooth packages

4 years agoFix(init-local-phd): Comment out `pidgin` and related packages
Oleg Broytman [Sun, 26 Apr 2020 00:44:15 +0000 (03:44 +0300)]
Fix(init-local-phd): Comment out `pidgin` and related packages

I stopped using Jabber and `pidgin` no longer supports
newer versions of ICQ and Mail.RU Agent.