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

5 years agoFix(run-playbook): Pass all arguments
Oleg Broytman [Sun, 14 Jul 2019 03:04:53 +0000 (06:04 +0300)]
Fix(run-playbook): Pass all arguments

Pass all command line parameters to `ansible-playbook`.

5 years agoFix(monthly-truncate-logs): Use YAML syntax instead of `=`
Oleg Broytman [Sun, 14 Jul 2019 03:02:57 +0000 (06:02 +0300)]
Fix(monthly-truncate-logs): Use YAML syntax instead of `=`

5 years agoFeat(adjtimex): Add a playbook to run `adjtimex.sh`
Oleg Broytman [Fri, 12 Jul 2019 22:27:07 +0000 (01:27 +0300)]
Feat(adjtimex): Add a playbook to run `adjtimex.sh`

5 years agoFeat(run-playbook): Run any playbook from the command line
Oleg Broytman [Fri, 12 Jul 2019 22:23:33 +0000 (01:23 +0300)]
Feat(run-playbook): Run any playbook from the command line

Rename debian-update-all-apt.sh -> run-playbook.

5 years agoFeat(debian-init-user-phd): Create groups
Oleg Broytman [Fri, 12 Jul 2019 00:14:18 +0000 (03:14 +0300)]
Feat(debian-init-user-phd): Create groups

5 years agoFix(debian-init-user-phd): Fix YAML syntax
Oleg Broytman [Fri, 12 Jul 2019 00:13:47 +0000 (03:13 +0300)]
Fix(debian-init-user-phd): Fix YAML syntax

5 years agoFix(debian-init-user-phd): Fix file mode
Oleg Broytman [Thu, 11 Jul 2019 23:31:30 +0000 (02:31 +0300)]
Fix(debian-init-user-phd): Fix file mode

Not executable, please.

5 years agoFeat(debian-init-user-phd): Use dynamic list of hosts
Oleg Broytman [Thu, 11 Jul 2019 23:29:49 +0000 (02:29 +0300)]
Feat(debian-init-user-phd): Use dynamic list of hosts

Default list is `servers`.

5 years agoAdd debian-update-all-apt.sh
Oleg Broytman [Thu, 11 Jul 2019 16:37:26 +0000 (19:37 +0300)]
Add debian-update-all-apt.sh

5 years agoFeat(inventory): Add group `localnet`
Oleg Broytman [Fri, 5 Jul 2019 17:21:46 +0000 (20:21 +0300)]
Feat(inventory): Add group `localnet`

5 years agoFeat(inventory): Canonicalize hostname `home`
Oleg Broytman [Fri, 5 Jul 2019 17:20:41 +0000 (20:20 +0300)]
Feat(inventory): Canonicalize hostname `home`

5 years agoFeat: Truncate Linux logs monthly
Oleg Broytman [Tue, 2 Jul 2019 13:10:12 +0000 (16:10 +0300)]
Feat: Truncate Linux logs monthly

Add monthly-truncate-logs.yml playbook.

5 years agoFeat(debian-update-all-apt): Update all packages
Oleg Broytman [Fri, 28 Jun 2019 22:23:45 +0000 (01:23 +0300)]
Feat(debian-update-all-apt): Update all packages

Update all installed packages to the latest state.

5 years agoFeat(debian-update-all-apt): Use dynamic list of hosts
Oleg Broytman [Fri, 28 Jun 2019 22:21:29 +0000 (01:21 +0300)]
Feat(debian-update-all-apt): Use dynamic list of hosts

Pass the list of hosts from the command line:
`ansible-playbook -e hosts=localhost -v debian-update-all-apt.yml`
Default is `all`.

5 years agoRefactor debian-update-all-apt.yml: `name`
Oleg Broytman [Tue, 25 Jun 2019 15:55:44 +0000 (18:55 +0300)]
Refactor debian-update-all-apt.yml: `name`

5 years agoSpeedup debian-init-user-phd.yml by not gathering facts
Oleg Broytman [Tue, 25 Jun 2019 15:55:03 +0000 (18:55 +0300)]
Speedup debian-init-user-phd.yml by not gathering facts

5 years agoUser `phd` playbook: Update groups
Oleg Broytman [Fri, 21 Jun 2019 15:43:10 +0000 (18:43 +0300)]
User `phd` playbook: Update groups

Set different groups for localhost and servers

5 years agoAdd a playbook to init user `phd`
Oleg Broytman [Tue, 18 Jun 2019 00:10:28 +0000 (03:10 +0300)]
Add a playbook to init user `phd`

Add user `phd`, copy its public ssh key.

5 years agoAdd a playbook to update debian systems using apt
Oleg Broytman [Sun, 16 Jun 2019 15:23:02 +0000 (18:23 +0300)]
Add a playbook to update debian systems using apt

Add `playbooks/debian-update-all-apt.yml`.

5 years agoInventory: Add servers
Oleg Broytman [Sun, 16 Jun 2019 13:48:04 +0000 (16:48 +0300)]
Inventory: Add servers

5 years agoInventory: Add localhost
Oleg Broytman [Sun, 16 Jun 2019 13:47:42 +0000 (16:47 +0300)]
Inventory: Add localhost