]> git.phdru.name Git - ansible.git/log
ansible.git
5 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'

5 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).

5 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.

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

5 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

5 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`).

5 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

5 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.

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

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

5 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

5 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

5 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

5 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`

5 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

5 years agoFeat(apache): Init system before installing apache
Oleg Broytman [Mon, 29 Jul 2019 18:27:31 +0000 (21:27 +0300)]
Feat(apache): Init system before installing apache

5 years agoRename `install-dehydrated` -> `dehydrated`
Oleg Broytman [Mon, 29 Jul 2019 17:59:49 +0000 (20:59 +0300)]
Rename `install-dehydrated` -> `dehydrated`

5 years agoFix(cleanup-tmp): Use `shell` instead of `command`
Oleg Broytman [Mon, 29 Jul 2019 16:38:05 +0000 (19:38 +0300)]
Fix(cleanup-tmp): Use `shell` instead of `command`

5 years agoFix(ansible/list-tmp): `ls` doesn't change anything
Oleg Broytman [Mon, 29 Jul 2019 16:32:30 +0000 (19:32 +0300)]
Fix(ansible/list-tmp): `ls` doesn't change anything

5 years agoFeat(init-system): By default run on all systems
Oleg Broytman [Mon, 29 Jul 2019 16:29:34 +0000 (19:29 +0300)]
Feat(init-system): By default run on all systems

Include `localhost`.

5 years agoFeat(init-system2): Setup `/usr/local/src`
Oleg Broytman [Mon, 29 Jul 2019 16:19:58 +0000 (19:19 +0300)]
Feat(init-system2): Setup `/usr/local/src`

5 years agoRefactor(init-system): Install `dnsutils`
Oleg Broytman [Mon, 29 Jul 2019 01:24:38 +0000 (04:24 +0300)]
Refactor(init-system): Install `dnsutils`

5 years agoRefactor(init-system): Alphabetically sort packages
Oleg Broytman [Mon, 29 Jul 2019 01:23:18 +0000 (04:23 +0300)]
Refactor(init-system): Alphabetically sort packages

5 years agoFeat: Use module `service` instead of `command`
Oleg Broytman [Sun, 28 Jul 2019 19:01:50 +0000 (22:01 +0300)]
Feat: Use module `service` instead of `command`

5 years agoFeat: Add `changed_when`
Oleg Broytman [Sun, 28 Jul 2019 19:01:09 +0000 (22:01 +0300)]
Feat: Add `changed_when`

5 years agoFix(add-apache-vhost): Remove wrong conditions
Oleg Broytman [Sun, 28 Jul 2019 18:59:16 +0000 (21:59 +0300)]
Fix(add-apache-vhost): Remove wrong conditions

5 years agoFix: Make idempotent
Oleg Broytman [Sun, 28 Jul 2019 18:28:25 +0000 (21:28 +0300)]
Fix: Make idempotent

5 years agoFix conditions
Oleg Broytman [Sun, 28 Jul 2019 17:43:13 +0000 (20:43 +0300)]
Fix conditions

5 years agoFix(init-system): Overwrite `sources.list` only if it's brand-new
Oleg Broytman [Sun, 28 Jul 2019 17:17:54 +0000 (20:17 +0300)]
Fix(init-system): Overwrite `sources.list` only if it's brand-new

5 years agoFeat(debian-init-system): Require single host
Oleg Broytman [Sun, 28 Jul 2019 16:39:21 +0000 (19:39 +0300)]
Feat(debian-init-system): Require single host

As the script asks for the root password
it can only initialize a single host.

5 years agoFeat: Declare dependencies between roles
Oleg Broytman [Sun, 28 Jul 2019 16:25:06 +0000 (19:25 +0300)]
Feat: Declare dependencies between roles

Also remove dependent roles from playbooks.

5 years agoFix(install-dehydrated): Fix clone destination directory
Oleg Broytman [Sat, 27 Jul 2019 16:00:29 +0000 (19:00 +0300)]
Fix(install-dehydrated): Fix clone destination directory

5 years agoFix(install-dehydrated): Fix condition
Oleg Broytman [Sat, 27 Jul 2019 15:31:53 +0000 (18:31 +0300)]
Fix(install-dehydrated): Fix condition

5 years agoFix(logcheck): Fix invalid user regexp
Oleg Broytman [Sat, 27 Jul 2019 13:21:30 +0000 (16:21 +0300)]
Fix(logcheck): Fix invalid user regexp

5 years agoFeat: Use module `stat` instead of command `test`
Oleg Broytman [Sat, 27 Jul 2019 13:18:56 +0000 (16:18 +0300)]
Feat: Use module `stat` instead of command `test`

5 years agoFeat(dehydrated): Create a universal weekly runner
Oleg Broytman [Sat, 27 Jul 2019 10:46:21 +0000 (13:46 +0300)]
Feat(dehydrated): Create a universal weekly runner

5 years agoFix(logcheck): Fix ssh: Ignore every character in invalid user name
Oleg Broytman [Sat, 27 Jul 2019 10:24:47 +0000 (13:24 +0300)]
Fix(logcheck): Fix ssh: Ignore every character in invalid user name

5 years agoFeat(add-apache-vhost): Declare `install-dehydrated` as a dependency
Oleg Broytman [Fri, 26 Jul 2019 21:17:00 +0000 (00:17 +0300)]
Feat(add-apache-vhost): Declare `install-dehydrated` as a dependency

5 years agoRename `add_apache_vhost` -> `apache-vhost`
Oleg Broytman [Fri, 26 Jul 2019 21:10:04 +0000 (00:10 +0300)]
Rename `add_apache_vhost` -> `apache-vhost`

5 years agoFeat(add_apache_vhost): Setup `dehydrated` for the virtual host
Oleg Broytman [Fri, 26 Jul 2019 20:06:33 +0000 (23:06 +0300)]
Feat(add_apache_vhost): Setup `dehydrated` for the virtual host

5 years agoRefactor(add_apache_vhost): Split `tasks/main`
Oleg Broytman [Fri, 26 Jul 2019 20:04:58 +0000 (23:04 +0300)]
Refactor(add_apache_vhost): Split `tasks/main`

Split `tasks/main` into `tasks/add_vhost`.

5 years agoFeat(logcheck): Publish my locally ignored patterns
Oleg Broytman [Fri, 26 Jul 2019 19:32:02 +0000 (22:32 +0300)]
Feat(logcheck): Publish my locally ignored patterns

5 years agoFeat(install-dehydrated): Install `dehydrated`
Oleg Broytman [Fri, 26 Jul 2019 19:22:30 +0000 (22:22 +0300)]
Feat(install-dehydrated): Install `dehydrated`

Install LetsEncrypt's client `dehydrated`: clone and sync it to the server.

5 years agoFeat(init-system2): Init Debian system: phase2
Oleg Broytman [Fri, 26 Jul 2019 19:13:40 +0000 (22:13 +0300)]
Feat(init-system2): Init Debian system: phase2

`chown`/`chmod` `/usr/local`.

5 years agoFeat(update-root): Use module `synchronize`
Oleg Broytman [Fri, 26 Jul 2019 15:43:23 +0000 (18:43 +0300)]
Feat(update-root): Use module `synchronize`

Use `synchronize:` delegated to the remote host instead of running
`rsync` directly with `command:`.

5 years agoFeat(apache): Configure logrotate
Oleg Broytman [Thu, 25 Jul 2019 23:46:28 +0000 (02:46 +0300)]
Feat(apache): Configure logrotate

5 years agoFeat(add_apache_vhost): Create directories in `/usr/local/apache22`
Oleg Broytman [Thu, 25 Jul 2019 23:39:02 +0000 (02:39 +0300)]
Feat(add_apache_vhost): Create directories in `/usr/local/apache22`

5 years agoFeat(apache): Install and configure Apache; add a virtual host
Oleg Broytman [Wed, 24 Jul 2019 19:44:21 +0000 (22:44 +0300)]
Feat(apache): Install and configure Apache; add a virtual host

5 years agoFix: Do not overwrite existing files
Oleg Broytman [Wed, 24 Jul 2019 17:28:32 +0000 (20:28 +0300)]
Fix: Do not overwrite existing files

5 years agoFeat(init-system2): Setup `sshd`
Oleg Broytman [Wed, 24 Jul 2019 16:16:43 +0000 (19:16 +0300)]
Feat(init-system2): Setup `sshd`

5 years agoFeat(init-system2): Install and update `logcheck`
Oleg Broytman [Wed, 24 Jul 2019 15:48:00 +0000 (18:48 +0300)]
Feat(init-system2): Install and update `logcheck`

5 years agoFeat: Use `changed_when` to avoid reporting changes
Oleg Broytman [Wed, 24 Jul 2019 15:42:26 +0000 (18:42 +0300)]
Feat: Use `changed_when` to avoid reporting changes

5 years agoRefactor(run-role): Use `exec`
Oleg Broytman [Wed, 24 Jul 2019 15:28:01 +0000 (18:28 +0300)]
Refactor(run-role): Use `exec`

5 years agoStyle(update-root): Remove excessive quotes
Oleg Broytman [Wed, 24 Jul 2019 15:27:14 +0000 (18:27 +0300)]
Style(update-root): Remove excessive quotes

5 years agoFeat(init-system2): Setup firewall
Oleg Broytman [Wed, 24 Jul 2019 15:26:15 +0000 (18:26 +0300)]
Feat(init-system2): Setup firewall

5 years agoFeat(firewall): Configure Debian iptables firewall
Oleg Broytman [Wed, 24 Jul 2019 03:14:40 +0000 (06:14 +0300)]
Feat(firewall): Configure Debian iptables firewall

5 years agoFeat(update-root): Update `~root` from `~phd`
Oleg Broytman [Wed, 24 Jul 2019 00:47:38 +0000 (03:47 +0300)]
Feat(update-root): Update `~root` from `~phd`

5 years agoRefactor(init-system): Merge locale handlers back into tasks
Oleg Broytman [Tue, 23 Jul 2019 23:28:03 +0000 (02:28 +0300)]
Refactor(init-system): Merge locale handlers back into tasks

5 years agoFix(remove-systemd): Fix reboot condition
Oleg Broytman [Tue, 23 Jul 2019 22:20:03 +0000 (01:20 +0300)]
Fix(remove-systemd): Fix reboot condition

`purged.rc` is be undefined is SystemD has already been removed.

5 years agoFeat(init-system2): Setup ~root by copying files from ~phd
Oleg Broytman [Tue, 23 Jul 2019 22:12:57 +0000 (01:12 +0300)]
Feat(init-system2): Setup ~root by copying files from ~phd

5 years agoFeat: Add playbook `init-system2`
Oleg Broytman [Tue, 23 Jul 2019 22:12:16 +0000 (01:12 +0300)]
Feat: Add playbook `init-system2`

5 years agoFeat: Move role `remove-systemd` to `debian/roles`
Oleg Broytman [Tue, 23 Jul 2019 22:09:44 +0000 (01:09 +0300)]
Feat: Move role `remove-systemd` to `debian/roles`

5 years agoStyle(init-system): Change wording
Oleg Broytman [Tue, 23 Jul 2019 22:08:07 +0000 (01:08 +0300)]
Style(init-system): Change wording

"Configure" -> "Setup".

5 years agoFix(adjtimex): Fix executable permissions
Oleg Broytman [Mon, 22 Jul 2019 18:42:26 +0000 (21:42 +0300)]
Fix(adjtimex): Fix executable permissions

5 years agoFix(debian/remove-systemd): Do not overwrite `/etc/inittab`
Oleg Broytman [Sun, 21 Jul 2019 17:01:27 +0000 (20:01 +0300)]
Fix(debian/remove-systemd): Do not overwrite `/etc/inittab`

5 years agoRefactor: `force: yes` is the default
Oleg Broytman [Sun, 21 Jul 2019 16:59:36 +0000 (19:59 +0300)]
Refactor: `force: yes` is the default

5 years agoFix: Use `failed_when` instead of `ignore_errors`
Oleg Broytman [Sun, 21 Jul 2019 14:14:26 +0000 (17:14 +0300)]
Fix: Use `failed_when` instead of `ignore_errors`

5 years agoFeat(debian/remove-systemd): Remove SystemD
Oleg Broytman [Sun, 21 Jul 2019 13:54:55 +0000 (16:54 +0300)]
Feat(debian/remove-systemd): Remove SystemD

5 years agoFeat(debian/init-system): Report locales were created
Oleg Broytman [Sun, 21 Jul 2019 12:45:25 +0000 (15:45 +0300)]
Feat(debian/init-system): Report locales were created

5 years agoFeat(debian/init-system): Split `tasks/main`
Oleg Broytman [Sun, 21 Jul 2019 12:42:03 +0000 (15:42 +0300)]
Feat(debian/init-system): Split `tasks/main`

Split `tasks/main` into `tasks/apt` and `tasks/locales`.

5 years agoFeat(debian/init-system): Uninstall uninteresting packages
Oleg Broytman [Fri, 19 Jul 2019 23:48:18 +0000 (02:48 +0300)]
Feat(debian/init-system): Uninstall uninteresting packages

5 years agoFeat(debian/init-system): Install more packages
Oleg Broytman [Fri, 19 Jul 2019 23:47:11 +0000 (02:47 +0300)]
Feat(debian/init-system): Install more packages

5 years agoFix(debian/init-system): Force notification to generate locales
Oleg Broytman [Fri, 19 Jul 2019 18:23:03 +0000 (21:23 +0300)]
Fix(debian/init-system): Force notification to generate locales

5 years agoFix(debian/init-system): Ignore error from `grep`
Oleg Broytman [Fri, 19 Jul 2019 18:14:57 +0000 (21:14 +0300)]
Fix(debian/init-system): Ignore error from `grep`

`grep` returns an error even if we only ask for count.

5 years agoFeat(debian): Change directory structure
Oleg Broytman [Fri, 19 Jul 2019 18:11:49 +0000 (21:11 +0300)]
Feat(debian): Change directory structure

5 years agoFeat(debian/phd): Merge `setup-home` back into `main`
Oleg Broytman [Wed, 17 Jul 2019 00:01:05 +0000 (03:01 +0300)]
Feat(debian/phd): Merge `setup-home` back into `main`

5 years agoRefactor(debian/logcheck): Refactor common path
Oleg Broytman [Tue, 16 Jul 2019 23:59:55 +0000 (02:59 +0300)]
Refactor(debian/logcheck): Refactor common path

5 years agoFeat(debian/init-system): Check locales are configured
Oleg Broytman [Tue, 16 Jul 2019 23:58:18 +0000 (02:58 +0300)]
Feat(debian/init-system): Check locales are configured

Check that locales are already configured.
If not - configure and regenerate.

5 years agoFeat: Rename/move playbooks
Oleg Broytman [Tue, 16 Jul 2019 21:35:20 +0000 (00:35 +0300)]
Feat: Rename/move playbooks

Move playbooks/ansible-* -> playbooks/ansible/*.
Move playbooks/debian-* -> playbooks/debian/*.

5 years agoFeat: Move roles/debian-* -> roles/debian/*
Oleg Broytman [Tue, 16 Jul 2019 21:32:19 +0000 (00:32 +0300)]
Feat: Move roles/debian-* -> roles/debian/*

5 years agoFeat(run-role): Run a role using a universal playbook
Oleg Broytman [Tue, 16 Jul 2019 19:32:06 +0000 (22:32 +0300)]
Feat(run-role): Run a role using a universal playbook

5 years agoFeat(debian-logcheck): Add a playbook to update logcheck ignore files
Oleg Broytman [Tue, 16 Jul 2019 18:56:42 +0000 (21:56 +0300)]
Feat(debian-logcheck): Add a playbook to update logcheck ignore files

5 years agoFix plays and tasks names
Oleg Broytman [Tue, 16 Jul 2019 00:35:16 +0000 (03:35 +0300)]
Fix plays and tasks names

5 years agoFix(debian-init-system): Combine uploading and extracting
Oleg Broytman [Tue, 16 Jul 2019 00:13:48 +0000 (03:13 +0300)]
Fix(debian-init-system): Combine uploading and extracting

Combine uploading and extracting in one step using module `unarchive`.
Extract directly to `/home/phd`.

5 years agoFix(debian-init-system): Access playbooks in the home directory
Oleg Broytman [Mon, 15 Jul 2019 23:58:26 +0000 (02:58 +0300)]
Fix(debian-init-system): Access playbooks in the home directory

5 years agoFeat(debian-init-system): Configure locales
Oleg Broytman [Mon, 15 Jul 2019 23:51:36 +0000 (02:51 +0300)]
Feat(debian-init-system): Configure locales

5 years agoFeat(debian-init-system): Add a script to run the playbook
Oleg Broytman [Mon, 15 Jul 2019 23:26:19 +0000 (02:26 +0300)]
Feat(debian-init-system): Add a script to run the playbook

5 years agoFeat(debian-init-system): Configure `apt`
Oleg Broytman [Mon, 15 Jul 2019 23:25:26 +0000 (02:25 +0300)]
Feat(debian-init-system): Configure `apt`

Setup `/etc/apt/sources.list` from a template.

5 years agoFeat(debian-init-system): Install more software
Oleg Broytman [Mon, 15 Jul 2019 23:24:00 +0000 (02:24 +0300)]
Feat(debian-init-system): Install more software

Install `curl`, `wget` and `gnupg`.

5 years agoFeat(adjtimex): Copy the script if it's not already there
Oleg Broytman [Sun, 14 Jul 2019 13:41:11 +0000 (16:41 +0300)]
Feat(adjtimex): Copy the script if it's not already there

5 years agoFix(adjtimex): Fix spelling
Oleg Broytman [Sun, 14 Jul 2019 13:40:44 +0000 (16:40 +0300)]
Fix(adjtimex): Fix spelling

5 years agoFeat: Add playbooks related to ~/.ansible/tmp
Oleg Broytman [Sun, 14 Jul 2019 06:39:05 +0000 (09:39 +0300)]
Feat: Add playbooks related to ~/.ansible/tmp

5 years agoFeat(debian-phd): Setup home directory
Oleg Broytman [Sun, 14 Jul 2019 05:56:50 +0000 (08:56 +0300)]
Feat(debian-phd): Setup home directory

Copy phd.tar.bz2, extract it and rsync to home.

5 years agoFeat(debian-phd): Test if the user was already created
Oleg Broytman [Sun, 14 Jul 2019 05:17:10 +0000 (08:17 +0300)]
Feat(debian-phd): Test if the user was already created

Actually test if the home was already initialized.

5 years agoStyle(debian-init-system): Fold long line
Oleg Broytman [Sun, 14 Jul 2019 05:16:09 +0000 (08:16 +0300)]
Style(debian-init-system): Fold long line

5 years agoFeat(debian-init-system): Install archivers/compressors
Oleg Broytman [Sun, 14 Jul 2019 04:37:41 +0000 (07:37 +0300)]
Feat(debian-init-system): Install archivers/compressors

5 years agoFeat(debian-init-system): Split to debian-init-user-phd
Oleg Broytman [Sun, 14 Jul 2019 04:36:55 +0000 (07:36 +0300)]
Feat(debian-init-system): Split to debian-init-user-phd

5 years agoFeat: Add `vbox-inventory`
Oleg Broytman [Sun, 14 Jul 2019 03:12:55 +0000 (06:12 +0300)]
Feat: Add `vbox-inventory`

Add an inventory file for local VirtualBox servers.

5 years agoFeat: Add `ansible-ssh`
Oleg Broytman [Sun, 14 Jul 2019 03:09:45 +0000 (06:09 +0300)]
Feat: Add `ansible-ssh`

A script to create SSH connection sharing control path
(alsmost) the same way ansible does it. Requires

   [ssh_connection]
   ssh_args = -C -o ControlMaster=auto -o ControlPath="~/.ssh/controls/%r@%h:%p" -o ControlPersist=600

in `~/.ansible.cfg`.

5 years agoFeat: Split `debian-init-user-phd` into roles
Oleg Broytman [Sun, 14 Jul 2019 03:06:18 +0000 (06:06 +0300)]
Feat: Split `debian-init-user-phd` into roles

Split `debian-init-user-phd` into `debian-init-local-phd`,
`debian-init-system`, `debian-init-user-phd` and roles
`debian-init-system`, `debian-phd` and `debian-sudo`.