added git, services, role-template-dir, copr

This commit is contained in:
opalvaults
2022-07-18 12:59:28 -07:00
parent 9a49c6a9fa
commit 4c2651c5a9
19 changed files with 395 additions and 69 deletions

View File

@@ -15,7 +15,7 @@ interpreter_python = auto
#remote_tmp = ~/.ansible/tmp
#local_tmp = ~/.ansible/tmp
#plugin_filters_cfg = /etc/ansible/plugin_filters.yml
#forks = 5
forks = 5
#poll_interval = 15
#sudo_user = root
#ask_sudo_pass = Truo
@@ -30,7 +30,7 @@ interpreter_python = auto
# smart - gather by default, but don't regather if already gathered
# implicit - gather by default, turn off with gather_facts: False
# explicit - do not gather by default, must say gather_facts: True
#gathering = implicit
gathering = explicit
# This only affects the gathering done by a play's gather_facts directive,
# by default gathering retrieves all facts subsets
@@ -394,7 +394,7 @@ become_user=root
# By default, this option is disabled to preserve compatibility with
# sudoers configurations that have requiretty (the default on many distros).
#
#pipelining = False
pipelining = True
# Control the mechanism for transferring files (old)
# * smart = try sftp and then try scp [default]

0
logs.txt Normal file
View File

236
logs/log.txt Normal file
View File

@@ -0,0 +1,236 @@
2022-07-18 11:43:21,969 p=12995 u=opal n=ansible | PLAY [Initial Setup Including Keys, Packages, and Users.] *****************************
2022-07-18 11:43:21,987 p=12995 u=opal n=ansible | TASK [git : Pull Doom Emacs] **********************************************************
2022-07-18 11:43:29,881 p=12995 u=opal n=ansible | changed: [localhost]
2022-07-18 11:43:29,893 p=12995 u=opal n=ansible | TASK [git : Install Doom Emacs] *******************************************************
2022-07-18 11:43:30,626 p=12995 u=opal n=ansible | fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["/home/opal/.config/emacs/bin/doom", "-y", "install"], "delta": "0:00:00.382121", "end": "2022-07-18 11:43:30.596785", "msg": "non-zero return code", "rc": 5, "start": "2022-07-18 11:43:30.214664", "stderr": "", "stderr_lines": [], "stdout": "Error: unknown option -y\n\nUsage: doom COMMAND [ARGS...]\n\nSee 'doom h[elp]' or 'doom {-?,--help}' for documentation.", "stdout_lines": ["Error: unknown option -y", "", "Usage: doom COMMAND [ARGS...]", "", "See 'doom h[elp]' or 'doom {-?,--help}' for documentation."]}
2022-07-18 11:43:30,628 p=12995 u=opal n=ansible | PLAY RECAP ****************************************************************************
2022-07-18 11:43:30,628 p=12995 u=opal n=ansible | localhost : ok=1 changed=1 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
2022-07-18 11:46:23,525 p=13259 u=opal n=ansible | PLAY [Initial Setup Including Keys, Packages, and Users.] *****************************
2022-07-18 11:46:23,543 p=13259 u=opal n=ansible | TASK [git : Pull Doom Emacs] **********************************************************
2022-07-18 11:46:32,777 p=13259 u=opal n=ansible | changed: [localhost]
2022-07-18 11:46:32,824 p=13259 u=opal n=ansible | PLAY RECAP ****************************************************************************
2022-07-18 11:46:32,825 p=13259 u=opal n=ansible | localhost : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
2022-07-18 11:56:28,790 p=13527 u=opal n=ansible | PLAY [Initial Setup Including Keys, Packages, and Users.] *****************************
2022-07-18 11:56:28,814 p=13527 u=opal n=ansible | TASK [base : Configure DNF] ***********************************************************
2022-07-18 11:56:29,752 p=13527 u=opal n=ansible | ok: [localhost]
2022-07-18 11:56:29,768 p=13527 u=opal n=ansible | TASK [base : Create groups] ***********************************************************
2022-07-18 11:56:30,133 p=13527 u=opal n=ansible | ok: [localhost] => (item={'key': 'opal', 'value': {'name': 'opal', 'uid': 2000, 'group': 'opal', 'groups': 'wheel', 'state': 'present', 'shell': '/usr/bin/zsh', 'create_home': True}})
2022-07-18 11:56:30,146 p=13527 u=opal n=ansible | TASK [base : Ensure Users are Configured Correctly] ***********************************
2022-07-18 11:56:30,651 p=13527 u=opal n=ansible | changed: [localhost] => (item={'key': 'opal', 'value': {'name': 'opal', 'uid': 2000, 'group': 'opal', 'groups': 'wheel', 'state': 'present', 'shell': '/usr/bin/zsh', 'create_home': True}})
2022-07-18 11:56:30,666 p=13527 u=opal n=ansible | TASK [base : Create or ensure presence of custom home directories] ********************
2022-07-18 11:56:30,912 p=13527 u=opal n=ansible | ok: [localhost] => (item=projects)
2022-07-18 11:56:31,123 p=13527 u=opal n=ansible | ok: [localhost] => (item=bin)
2022-07-18 11:56:31,340 p=13527 u=opal n=ansible | ok: [localhost] => (item=documents)
2022-07-18 11:56:31,553 p=13527 u=opal n=ansible | ok: [localhost] => (item=music)
2022-07-18 11:56:31,764 p=13527 u=opal n=ansible | ok: [localhost] => (item=downloads)
2022-07-18 11:56:31,977 p=13527 u=opal n=ansible | ok: [localhost] => (item=scripts)
2022-07-18 11:56:32,189 p=13527 u=opal n=ansible | ok: [localhost] => (item=pictures)
2022-07-18 11:56:32,201 p=13527 u=opal n=ansible | TASK [base : Remove default home directories if present] ******************************
2022-07-18 11:56:32,438 p=13527 u=opal n=ansible | ok: [localhost] => (item=Templates)
2022-07-18 11:56:32,649 p=13527 u=opal n=ansible | ok: [localhost] => (item=Videos)
2022-07-18 11:56:32,856 p=13527 u=opal n=ansible | ok: [localhost] => (item=Documents)
2022-07-18 11:56:33,067 p=13527 u=opal n=ansible | ok: [localhost] => (item=Music)
2022-07-18 11:56:33,280 p=13527 u=opal n=ansible | ok: [localhost] => (item=Downloads)
2022-07-18 11:56:33,488 p=13527 u=opal n=ansible | ok: [localhost] => (item=Pictures)
2022-07-18 11:56:33,696 p=13527 u=opal n=ansible | ok: [localhost] => (item=Public)
2022-07-18 11:56:33,903 p=13527 u=opal n=ansible | ok: [localhost] => (item=Desktop)
2022-07-18 11:56:33,915 p=13527 u=opal n=ansible | TASK [base : Create/Ensure ~/.ssh directories] ****************************************
2022-07-18 11:56:34,155 p=13527 u=opal n=ansible | ok: [localhost] => (item={'key': 'opal', 'value': {'name': 'opal', 'uid': 2000, 'group': 'opal', 'groups': 'wheel', 'state': 'present', 'shell': '/usr/bin/zsh', 'create_home': True}})
2022-07-18 11:56:34,168 p=13527 u=opal n=ansible | TASK [base : Setup /etc/motd from template] *******************************************
2022-07-18 11:56:34,610 p=13527 u=opal n=ansible | ok: [localhost]
2022-07-18 11:56:34,631 p=13527 u=opal n=ansible | TASK [packages : Upgrade All Packages] ************************************************
2022-07-18 11:56:36,503 p=13527 u=opal n=ansible | ok: [localhost]
2022-07-18 11:56:36,514 p=13527 u=opal n=ansible | TASK [packages : Install Window Manager Packages] *************************************
2022-07-18 11:56:38,223 p=13527 u=opal n=ansible | ok: [localhost] => (item=sway)
2022-07-18 11:56:39,915 p=13527 u=opal n=ansible | ok: [localhost] => (item=swayidle)
2022-07-18 11:56:41,606 p=13527 u=opal n=ansible | ok: [localhost] => (item=swaybg)
2022-07-18 11:56:43,280 p=13527 u=opal n=ansible | ok: [localhost] => (item=swaylock)
2022-07-18 11:56:44,969 p=13527 u=opal n=ansible | ok: [localhost] => (item=waybar)
2022-07-18 11:56:46,124 p=13527 u=opal n=ansible | [ERROR]: User interrupted execution
2022-07-18 12:02:32,396 p=8312 u=opal n=ansible | PLAY [Initial Setup Including Keys, Packages, and Users.] ****************************
2022-07-18 12:02:32,424 p=8312 u=opal n=ansible | TASK [base : Configure DNF] **********************************************************
2022-07-18 12:02:33,293 p=8312 u=opal n=ansible | ok: [localhost]
2022-07-18 12:02:33,305 p=8312 u=opal n=ansible | TASK [base : Create groups] **********************************************************
2022-07-18 12:02:33,684 p=8312 u=opal n=ansible | ok: [localhost] => (item={'key': 'opal', 'value': {'name': 'opal', 'uid': 2000, 'group': 'opal', 'groups': 'wheel', 'state': 'present', 'shell': '/usr/bin/zsh', 'create_home': True}})
2022-07-18 12:02:33,693 p=8312 u=opal n=ansible | TASK [base : Ensure Users are Configured Correctly] **********************************
2022-07-18 12:02:34,158 p=8312 u=opal n=ansible | ok: [localhost] => (item={'key': 'opal', 'value': {'name': 'opal', 'uid': 2000, 'group': 'opal', 'groups': 'wheel', 'state': 'present', 'shell': '/usr/bin/zsh', 'create_home': True}})
2022-07-18 12:02:34,171 p=8312 u=opal n=ansible | TASK [base : Create or ensure presence of custom home directories] *******************
2022-07-18 12:02:34,402 p=8312 u=opal n=ansible | ok: [localhost] => (item=projects)
2022-07-18 12:02:34,604 p=8312 u=opal n=ansible | ok: [localhost] => (item=bin)
2022-07-18 12:02:34,816 p=8312 u=opal n=ansible | ok: [localhost] => (item=documents)
2022-07-18 12:02:35,021 p=8312 u=opal n=ansible | ok: [localhost] => (item=music)
2022-07-18 12:02:35,226 p=8312 u=opal n=ansible | ok: [localhost] => (item=downloads)
2022-07-18 12:02:35,438 p=8312 u=opal n=ansible | ok: [localhost] => (item=scripts)
2022-07-18 12:02:35,652 p=8312 u=opal n=ansible | ok: [localhost] => (item=pictures)
2022-07-18 12:02:35,860 p=8312 u=opal n=ansible | changed: [localhost] => (item=sync)
2022-07-18 12:02:35,872 p=8312 u=opal n=ansible | TASK [base : Remove default home directories if present] *****************************
2022-07-18 12:02:36,102 p=8312 u=opal n=ansible | ok: [localhost] => (item=Templates)
2022-07-18 12:02:36,305 p=8312 u=opal n=ansible | ok: [localhost] => (item=Videos)
2022-07-18 12:02:36,507 p=8312 u=opal n=ansible | ok: [localhost] => (item=Documents)
2022-07-18 12:02:36,563 p=8312 u=opal n=ansible | [ERROR]: User interrupted execution
2022-07-18 12:20:28,320 p=19286 u=opal n=ansible | PLAY [Initial Setup Including Keys, Packages, and Users.] ********************************************************************************************************************
2022-07-18 12:20:28,346 p=19286 u=opal n=ansible | TASK [base : Configure DNF] **************************************************************************************************************************************************
2022-07-18 12:20:29,282 p=19286 u=opal n=ansible | ok: [localhost]
2022-07-18 12:20:29,293 p=19286 u=opal n=ansible | TASK [base : Create groups] **************************************************************************************************************************************************
2022-07-18 12:20:29,657 p=19286 u=opal n=ansible | ok: [localhost] => (item={'key': 'opal', 'value': {'name': 'opal', 'uid': 2000, 'group': 'opal', 'groups': 'wheel', 'state': 'present', 'shell': '/usr/bin/zsh', 'create_home': True}})
2022-07-18 12:20:29,670 p=19286 u=opal n=ansible | TASK [base : Ensure Users are Configured Correctly] **************************************************************************************************************************
2022-07-18 12:20:30,163 p=19286 u=opal n=ansible | ok: [localhost] => (item={'key': 'opal', 'value': {'name': 'opal', 'uid': 2000, 'group': 'opal', 'groups': 'wheel', 'state': 'present', 'shell': '/usr/bin/zsh', 'create_home': True}})
2022-07-18 12:20:30,174 p=19286 u=opal n=ansible | TASK [base : Create or ensure presence of custom home directories] ***********************************************************************************************************
2022-07-18 12:20:30,417 p=19286 u=opal n=ansible | ok: [localhost] => (item=projects)
2022-07-18 12:20:30,632 p=19286 u=opal n=ansible | ok: [localhost] => (item=bin)
2022-07-18 12:20:30,851 p=19286 u=opal n=ansible | ok: [localhost] => (item=documents)
2022-07-18 12:20:31,074 p=19286 u=opal n=ansible | ok: [localhost] => (item=music)
2022-07-18 12:20:31,293 p=19286 u=opal n=ansible | ok: [localhost] => (item=downloads)
2022-07-18 12:20:31,516 p=19286 u=opal n=ansible | ok: [localhost] => (item=scripts)
2022-07-18 12:20:31,743 p=19286 u=opal n=ansible | ok: [localhost] => (item=pictures)
2022-07-18 12:20:31,958 p=19286 u=opal n=ansible | ok: [localhost] => (item=sync)
2022-07-18 12:20:31,972 p=19286 u=opal n=ansible | TASK [base : Remove default home directories if present] *********************************************************************************************************************
2022-07-18 12:20:32,208 p=19286 u=opal n=ansible | ok: [localhost] => (item=Templates)
2022-07-18 12:20:32,418 p=19286 u=opal n=ansible | ok: [localhost] => (item=Videos)
2022-07-18 12:20:32,631 p=19286 u=opal n=ansible | ok: [localhost] => (item=Documents)
2022-07-18 12:20:32,854 p=19286 u=opal n=ansible | ok: [localhost] => (item=Music)
2022-07-18 12:20:33,069 p=19286 u=opal n=ansible | ok: [localhost] => (item=Downloads)
2022-07-18 12:20:33,286 p=19286 u=opal n=ansible | ok: [localhost] => (item=Pictures)
2022-07-18 12:20:33,501 p=19286 u=opal n=ansible | ok: [localhost] => (item=Public)
2022-07-18 12:20:33,717 p=19286 u=opal n=ansible | changed: [localhost] => (item=Desktop)
2022-07-18 12:20:33,727 p=19286 u=opal n=ansible | TASK [base : Create/Ensure ~/.ssh directories] *******************************************************************************************************************************
2022-07-18 12:20:33,980 p=19286 u=opal n=ansible | ok: [localhost] => (item={'key': 'opal', 'value': {'name': 'opal', 'uid': 2000, 'group': 'opal', 'groups': 'wheel', 'state': 'present', 'shell': '/usr/bin/zsh', 'create_home': True}})
2022-07-18 12:20:33,993 p=19286 u=opal n=ansible | TASK [base : Setup /etc/motd from template] **********************************************************************************************************************************
2022-07-18 12:20:34,435 p=19286 u=opal n=ansible | ok: [localhost]
2022-07-18 12:20:34,456 p=19286 u=opal n=ansible | TASK [packages : Upgrade All Packages] ***************************************************************************************************************************************
2022-07-18 12:20:36,473 p=19286 u=opal n=ansible | ok: [localhost]
2022-07-18 12:20:36,485 p=19286 u=opal n=ansible | TASK [packages : Install Window Manager Packages] ****************************************************************************************************************************
2022-07-18 12:20:38,293 p=19286 u=opal n=ansible | ok: [localhost] => (item=sway)
2022-07-18 12:20:40,077 p=19286 u=opal n=ansible | ok: [localhost] => (item=swayidle)
2022-07-18 12:20:41,871 p=19286 u=opal n=ansible | ok: [localhost] => (item=swaybg)
2022-07-18 12:20:43,653 p=19286 u=opal n=ansible | ok: [localhost] => (item=swaylock)
2022-07-18 12:20:45,448 p=19286 u=opal n=ansible | ok: [localhost] => (item=waybar)
2022-07-18 12:20:47,216 p=19286 u=opal n=ansible | ok: [localhost] => (item=wofi)
2022-07-18 12:20:48,985 p=19286 u=opal n=ansible | ok: [localhost] => (item=dunst)
2022-07-18 12:20:50,770 p=19286 u=opal n=ansible | ok: [localhost] => (item=grim)
2022-07-18 12:20:52,544 p=19286 u=opal n=ansible | ok: [localhost] => (item=grimshot)
2022-07-18 12:20:54,317 p=19286 u=opal n=ansible | ok: [localhost] => (item=wdisplays)
2022-07-18 12:20:54,332 p=19286 u=opal n=ansible | TASK [packages : Install CLI Packages] ***************************************************************************************************************************************
2022-07-18 12:20:56,128 p=19286 u=opal n=ansible | ok: [localhost] => (item=alacritty)
2022-07-18 12:20:57,900 p=19286 u=opal n=ansible | ok: [localhost] => (item=keychain)
2022-07-18 12:20:59,682 p=19286 u=opal n=ansible | ok: [localhost] => (item=zsh)
2022-07-18 12:21:01,469 p=19286 u=opal n=ansible | ok: [localhost] => (item=zsh-autosuggestions)
2022-07-18 12:21:03,243 p=19286 u=opal n=ansible | ok: [localhost] => (item=python3-pip)
2022-07-18 12:21:05,018 p=19286 u=opal n=ansible | ok: [localhost] => (item=borgbackup)
2022-07-18 12:21:06,794 p=19286 u=opal n=ansible | ok: [localhost] => (item=bat)
2022-07-18 12:21:08,561 p=19286 u=opal n=ansible | ok: [localhost] => (item=exa)
2022-07-18 12:21:10,330 p=19286 u=opal n=ansible | ok: [localhost] => (item=ripgrep)
2022-07-18 12:21:12,099 p=19286 u=opal n=ansible | ok: [localhost] => (item=stow)
2022-07-18 12:21:13,876 p=19286 u=opal n=ansible | ok: [localhost] => (item=curl)
2022-07-18 12:21:15,657 p=19286 u=opal n=ansible | ok: [localhost] => (item=make)
2022-07-18 12:21:17,436 p=19286 u=opal n=ansible | ok: [localhost] => (item=libtool)
2022-07-18 12:21:19,203 p=19286 u=opal n=ansible | ok: [localhost] => (item=tldr)
2022-07-18 12:21:20,985 p=19286 u=opal n=ansible | ok: [localhost] => (item=gnupg2)
2022-07-18 12:21:22,771 p=19286 u=opal n=ansible | ok: [localhost] => (item=vim)
2022-07-18 12:21:24,547 p=19286 u=opal n=ansible | ok: [localhost] => (item=trash-cli)
2022-07-18 12:21:26,315 p=19286 u=opal n=ansible | ok: [localhost] => (item=lshw)
2022-07-18 12:21:28,097 p=19286 u=opal n=ansible | ok: [localhost] => (item=git)
2022-07-18 12:21:29,873 p=19286 u=opal n=ansible | ok: [localhost] => (item=fd-find)
2022-07-18 12:21:31,661 p=19286 u=opal n=ansible | ok: [localhost] => (item=screen)
2022-07-18 12:21:33,455 p=19286 u=opal n=ansible | ok: [localhost] => (item=htop)
2022-07-18 12:21:33,468 p=19286 u=opal n=ansible | TASK [packages : Install General Packages] ***********************************************************************************************************************************
2022-07-18 12:21:35,291 p=19286 u=opal n=ansible | ok: [localhost] => (item=firefox)
2022-07-18 12:21:37,074 p=19286 u=opal n=ansible | ok: [localhost] => (item=emacs)
2022-07-18 12:21:38,862 p=19286 u=opal n=ansible | ok: [localhost] => (item=RemoteBox)
2022-07-18 12:21:40,644 p=19286 u=opal n=ansible | ok: [localhost] => (item=network-manager-applet)
2022-07-18 12:21:42,449 p=19286 u=opal n=ansible | ok: [localhost] => (item=thunar)
2022-07-18 12:21:44,236 p=19286 u=opal n=ansible | ok: [localhost] => (item=ansible)
2022-07-18 12:21:46,088 p=19286 u=opal n=ansible | ok: [localhost] => (item=make)
2022-07-18 12:21:47,913 p=19286 u=opal n=ansible | ok: [localhost] => (item=syncthing)
2022-07-18 12:21:49,709 p=19286 u=opal n=ansible | ok: [localhost] => (item=udiskie)
2022-07-18 12:21:51,560 p=19286 u=opal n=ansible | ok: [localhost] => (item=keepassxc)
2022-07-18 12:21:53,312 p=19286 u=opal n=ansible | ok: [localhost] => (item=transmission)
2022-07-18 12:21:55,032 p=19286 u=opal n=ansible | ok: [localhost] => (item=pavucontrol)
2022-07-18 12:21:56,716 p=19286 u=opal n=ansible | ok: [localhost] => (item=nm-connection-editor)
2022-07-18 12:21:58,479 p=19286 u=opal n=ansible | ok: [localhost] => (item=feh)
2022-07-18 12:21:58,492 p=19286 u=opal n=ansible | TASK [packages : Install Doom Emacs Dependencies] ****************************************************************************************************************************
2022-07-18 12:22:00,310 p=19286 u=opal n=ansible | ok: [localhost] => (item=libtool)
2022-07-18 12:22:02,059 p=19286 u=opal n=ansible | ok: [localhost] => (item=cmake)
2022-07-18 12:22:03,822 p=19286 u=opal n=ansible | ok: [localhost] => (item=discount)
2022-07-18 12:22:05,635 p=19286 u=opal n=ansible | ok: [localhost] => (item=ShellCheck)
2022-07-18 12:22:07,436 p=19286 u=opal n=ansible | ok: [localhost] => (item=cmake)
2022-07-18 12:22:07,447 p=19286 u=opal n=ansible | TASK [packages : Install Networking Packages] ********************************************************************************************************************************
2022-07-18 12:22:09,275 p=19286 u=opal n=ansible | ok: [localhost] => (item=nmap)
2022-07-18 12:22:11,086 p=19286 u=opal n=ansible | ok: [localhost] => (item=nc)
2022-07-18 12:22:13,003 p=19286 u=opal n=ansible | ok: [localhost] => (item=whois)
2022-07-18 12:22:14,809 p=19286 u=opal n=ansible | ok: [localhost] => (item=bind-utils)
2022-07-18 12:22:16,699 p=19286 u=opal n=ansible | ok: [localhost] => (item=telnet)
2022-07-18 12:22:16,710 p=19286 u=opal n=ansible | TASK [packages : Install Font Packages] **************************************************************************************************************************************
2022-07-18 12:22:18,584 p=19286 u=opal n=ansible | ok: [localhost] => (item=fontawesome5-fonts)
2022-07-18 12:22:20,302 p=19286 u=opal n=ansible | ok: [localhost] => (item=abattis-cantarell-fonts)
2022-07-18 12:22:20,315 p=19286 u=opal n=ansible | TASK [packages : Install Veracrypt from RPM] *********************************************************************************************************************************
2022-07-18 12:22:25,277 p=19286 u=opal n=ansible | ok: [localhost]
2022-07-18 12:22:25,300 p=19286 u=opal n=ansible | TASK [flatpak : Add Flathub Repository] **************************************************************************************************************************************
2022-07-18 12:22:25,677 p=19286 u=opal n=ansible | ok: [localhost]
2022-07-18 12:22:25,687 p=19286 u=opal n=ansible | TASK [flatpak : Install Flatpak Packages] ************************************************************************************************************************************
2022-07-18 12:22:26,079 p=19286 u=opal n=ansible | ok: [localhost] => (item=im.riot.Riot)
2022-07-18 12:22:26,297 p=19286 u=opal n=ansible | ok: [localhost] => (item=org.signal.Signal)
2022-07-18 12:22:26,317 p=19286 u=opal n=ansible | TASK [pip : Install pip3 packages] *******************************************************************************************************************************************
2022-07-18 12:22:27,604 p=19286 u=opal n=ansible | ok: [localhost] => (item=borgmatic)
2022-07-18 12:22:28,538 p=19286 u=opal n=ansible | ok: [localhost] => (item=keep)
2022-07-18 12:22:28,561 p=19286 u=opal n=ansible | TASK [git : Pull Dotfiles Repository] ****************************************************************************************************************************************
2022-07-18 12:22:28,967 p=19286 u=opal n=ansible | ok: [localhost]
2022-07-18 12:22:28,983 p=19286 u=opal n=ansible | TASK [git : Pull Cookbook Repository] ****************************************************************************************************************************************
2022-07-18 12:22:29,266 p=19286 u=opal n=ansible | ok: [localhost]
2022-07-18 12:22:29,274 p=19286 u=opal n=ansible | TASK [git : Pull Doom Emacs] *************************************************************************************************************************************************
2022-07-18 12:22:29,513 p=19286 u=opal n=ansible | ok: [localhost]
2022-07-18 12:22:29,537 p=19286 u=opal n=ansible | PLAY RECAP *******************************************************************************************************************************************************************
2022-07-18 12:22:29,538 p=19286 u=opal n=ansible | localhost : ok=21 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
2022-07-18 12:39:48,280 p=26474 u=opal n=ansible | PLAY [Initial Setup Including Keys, Packages, and Users.] ************************
2022-07-18 12:39:48,305 p=26474 u=opal n=ansible | TASK [base : Configure DNF] ******************************************************
2022-07-18 12:39:48,835 p=26474 u=opal n=ansible | [ERROR]: User interrupted execution
2022-07-18 12:42:10,335 p=26849 u=opal n=ansible | PLAY [Initial Setup Including Keys, Packages, and Users.] ************************
2022-07-18 12:42:10,395 p=26849 u=opal n=ansible | TASK [copr : Enable Iosevka Font Repo] *******************************************
2022-07-18 12:42:11,598 p=26849 u=opal n=ansible | changed: [localhost]
2022-07-18 12:42:11,606 p=26849 u=opal n=ansible | TASK [copr : Enable Hack Font Repo] **********************************************
2022-07-18 12:42:12,394 p=26849 u=opal n=ansible | changed: [localhost]
2022-07-18 12:42:12,406 p=26849 u=opal n=ansible | TASK [copr : Install COPR Packages] **********************************************
2022-07-18 12:42:17,665 p=26849 u=opal n=ansible | changed: [localhost] => (item=hack-fonts)
2022-07-18 12:42:30,175 p=26849 u=opal n=ansible | changed: [localhost] => (item=iosevka-fonts)
2022-07-18 12:42:30,201 p=26849 u=opal n=ansible | PLAY RECAP ***********************************************************************
2022-07-18 12:42:30,201 p=26849 u=opal n=ansible | localhost : ok=3 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
2022-07-18 12:42:58,531 p=27601 u=opal n=ansible | PLAY [Initial Setup Including Keys, Packages, and Users.] ********************************************************************************************************************
2022-07-18 12:42:58,577 p=27601 u=opal n=ansible | TASK [pip : Install pip3 packages] *******************************************************************************************************************************************
2022-07-18 12:42:59,700 p=27601 u=opal n=ansible | ok: [localhost] => (item=borgmatic)
2022-07-18 12:43:00,618 p=27601 u=opal n=ansible | ok: [localhost] => (item=keep)
2022-07-18 12:43:00,673 p=27601 u=opal n=ansible | PLAY RECAP *******************************************************************************************************************************************************************
2022-07-18 12:43:00,673 p=27601 u=opal n=ansible | localhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
2022-07-18 12:43:41,802 p=27748 u=opal n=ansible | PLAY [Initial Setup Including Keys, Packages, and Users.] ********************************************************************************************************************
2022-07-18 12:43:41,850 p=27748 u=opal n=ansible | TASK [pip : Install pip3 packages] *******************************************************************************************************************************************
2022-07-18 12:43:42,983 p=27748 u=opal n=ansible | ok: [localhost] => (item=borgmatic)
2022-07-18 12:43:43,895 p=27748 u=opal n=ansible | ok: [localhost] => (item=keep)
2022-07-18 12:43:46,560 p=27748 u=opal n=ansible | changed: [localhost] => (item=flashfocus)
2022-07-18 12:43:46,615 p=27748 u=opal n=ansible | PLAY RECAP *******************************************************************************************************************************************************************
2022-07-18 12:43:46,615 p=27748 u=opal n=ansible | localhost : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
2022-07-18 12:48:06,661 p=29647 u=opal n=ansible | PLAY [Initial Setup Including Keys, Packages, and Users.] ********************************************************************************************************************
2022-07-18 12:48:06,687 p=29647 u=opal n=ansible | TASK [base : Configure DNF] **************************************************************************************************************************************************
2022-07-18 12:48:07,456 p=29647 u=opal n=ansible | ok: [localhost]
2022-07-18 12:48:07,472 p=29647 u=opal n=ansible | TASK [base : Create groups] **************************************************************************************************************************************************
2022-07-18 12:48:07,855 p=29647 u=opal n=ansible | ok: [localhost] => (item={'key': 'opal', 'value': {'name': 'opal', 'uid': 2000, 'group': 'opal', 'groups': 'wheel', 'state': 'present', 'shell': '/usr/bin/zsh', 'create_home': True}})
2022-07-18 12:48:07,864 p=29647 u=opal n=ansible | TASK [base : Ensure Users are Configured Correctly] **************************************************************************************************************************
2022-07-18 12:48:08,327 p=29647 u=opal n=ansible | [ERROR]: User interrupted execution
2022-07-18 12:55:52,565 p=33423 u=opal n=ansible | ERROR! 'ask_become_pass' is not a valid attribute for a Play
The error appears to be in '/home/opal/documents/ansible-repo/site.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
---
- name: Initial Setup Including Keys, Packages, and Users.
^ here
2022-07-18 12:56:41,890 p=33487 u=opal n=ansible | PLAY [Initial Setup Including Keys, Packages, and Users.] ****************************************************************************************************
2022-07-18 12:56:41,916 p=33487 u=opal n=ansible | TASK [base : Configure DNF] **********************************************************************************************************************************
2022-07-18 12:56:42,168 p=33487 u=opal n=ansible | fatal: [localhost]: FAILED! => {"msg": "Failed to get information on remote file (/etc/dnf/dnf.conf): sudo: a password is required\n"}
2022-07-18 12:56:42,170 p=33487 u=opal n=ansible | PLAY RECAP ***************************************************************************************************************************************************
2022-07-18 12:56:42,170 p=33487 u=opal n=ansible | localhost : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

View File

@@ -1,20 +0,0 @@
[Unit]
Description=Syncthing - Open Source Continuous File Synchronization
Documentation=man:syncthing(1)
StartLimitIntervalSec=60
StartLimitBurst=4
[Service]
ExecStart=/usr/bin/syncthing serve --no-browser --no-restart --logflags=0
Restart=on-failure
RestartSec=1
SuccessExitStatus=3 4
RestartForceExitStatus=3 4
# Hardening
SystemCallArchitectures=native
MemoryDenyWriteExecute=true
NoNewPrivileges=true
[Install]
WantedBy=default.target

View File

@@ -1,5 +1,27 @@
---
# Default directory management
- name: Configure DNF
template:
src: dnf.conf.j2
dest: /etc/dnf/dnf.conf
- name: Create groups
group:
name: "{{ item.value.group }}"
gid: "{{ item.value.uid }}"
state: "{{ item.value.state }}"
loop: "{{ init_users | dict2items }}"
- name: Ensure Users are Configured Correctly
user:
name: "{{ item.value.name }}"
uid: "{{ item.value.uid }}"
group: "{{ item.value.group }}"
groups: "{{ item.value.groups }}"
state: "{{ item.value.state }}"
create_home: "{{ item.value.create_home }}"
shell: "{{ item.value.shell }}"
loop: "{{ init_users | dict2items }}"
- name: Create or ensure presence of custom home directories
file:
path: /home/opal/{{ item }}
@@ -29,22 +51,3 @@
template:
src: motd.j2
dest: /etc/motd
# # Git repositories
# - name: Pull dotfiles down from git
# git:
# repo: 'git@codeberg.org:opalvaults/opalfiles.git'
# dest: "/home/opal/opalfiles"
# key_file: "/home/opal/.ssh/ry_ecdsa"
# become: yes
# become_user: opal
# become_method: su
# - name: Pull cookbook down from git
# git:
# repo: 'git@codeberg.org:opalvaults/sysadmin-cookbook.git'
# dest: "/home/opal/projects/sysadmin-cookbook"
# key_file: "/home/opal/.ssh/ry_ecdsa"
# become: yes
# become_user: opal
# become_method: su

View File

@@ -0,0 +1,10 @@
# see `man dnf.conf` for defaults and possible options
[main]
fastestmirror=True
max_parallel_downloads=10
gpgcheck=True
installonly_limit=3
clean_requirements_on_remove=True
best=False
skip_if_unavailable=True

View File

@@ -17,6 +17,7 @@ create_directories:
- downloads
- scripts
- pictures
- sync
init_users:
opal:

17
roles/copr/tasks/main.yml Normal file
View File

@@ -0,0 +1,17 @@
---
- name: Enable Iosevka Font Repo
command:
cmd: dnf copr enable -y {{ iosevka_font_repo }}
creates: "{{ iosevka_font_repo_path }}"
#creates: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:peterwu:iosevka.repo
- name: Enable Hack Font Repo
command:
cmd: dnf copr enable -y {{ hack_font_repo }}
creates: "{{ hack_font_repo_path}}"
- name: Install COPR Packages
dnf:
name: "{{ item }}"
state: present
loop: "{{ copr_packages }}"

10
roles/copr/vars/main.yml Normal file
View File

@@ -0,0 +1,10 @@
---
iosevka_font_repo: peterwu/iosevka
iosevka_font_repo_path: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:peterwu:iosevka.repo fedora-updates-testing.repo
hack_font_repo: zawertun/hack-fonts
hack_font_repo_path: /etc/yum.repod.d/_copr:copr.fedorainfracloud.org:zawertun:hack-fonts.repo fedora-updates.repo
copr_packages:
- hack-fonts
- iosevka-fonts

View File

@@ -5,9 +5,6 @@
state: present
method: user
flatpakrepo_url: https://flathub.org/repo/flathub.flatpakrepo
become: yes
become_user: opal
become_method: su
- name: Install Flatpak Packages
community.general.flatpak:
@@ -15,6 +12,3 @@
state: present
method: user
loop: "{{ flatpak_packages }}"
become: yes
become_user: opal
become_method: su

24
roles/git/tasks/main.yml Normal file
View File

@@ -0,0 +1,24 @@
---
- name: Pull Dotfiles Repository
git:
repo: "{{ dotfiles_repo }}"
dest: "{{ dotfiles_dest }}"
update: no
- name: Pull Cookbook Repository
git:
repo: "{{ cookbook_repo }}"
dest: "{{ cookbook_dest }}"
update: no
- name: Pull pfetch
git:
repo: "{{ pfetch_repo }}"
dest: "{{ pfetch_dest }}"
update: no
- name: Pull Doom Emacs
git:
repo: "{{ doom_emacs_repo }}"
dest: "{{ doom_emacs_dest }}"
update: no

Binary file not shown.

24
roles/git/vars/main.yml Normal file
View File

@@ -0,0 +1,24 @@
---
dotfiles_repo: https://codeberg.org/opalvaults/opalfiles.git
dotfiles_dest: ~/opalfiles
cookbook_repo: https://codeberg.org/opalvaults/opalfiles.git
cookbook_dest: ~/projects/sysadmin-cookbook
doom_emacs_repo: https://github.com/doomemacs/doomemacs
doom_emacs_dest: /home/opal/.config/emacs
doom_emacs_install_cmd: /home/opal/.config/emacs/bin/doom -y install
pfetch_repo: https://github.com/dylanaraps/pfetch
pfetch_repo_dest: ~/bin/pfetch
init_users:
opal:
name: opal
uid: 2000
group: opal
groups: wheel
state: present
shell: /usr/bin/zsh
create_home: true

View File

@@ -5,43 +5,43 @@
state: latest
- name: Install Window Manager Packages
package:
dnf:
name: "{{ item }}"
state: present
update_cache: yes
loop: "{{ wm_packages }}"
- name: Install CLI Packages
package:
dnf:
name: "{{ item }}"
state: present
update_cache: yes
loop: "{{ cli_packages }}"
- name: Install General Packages
package:
dnf:
name: "{{ item }}"
state: present
update_cache: yes
loop: "{{ general_packages }}"
- name: Install Doom Emacs Dependencies
package:
dnf:
name: "{{ item }}"
state: present
update_cache: yes
loop: "{{ doom_dep_packages }}"
- name: Install Networking Packages
package:
dnf:
name: "{{ item }}"
state: present
update_cache: yes
loop: "{{ networking_packages }}"
- name: Install Font Packages
package:
dnf:
name: "{{ item }}"
state: present
update_cache: yes
loop: "{{ fontawesome-fonts }}"
loop: "{{ font_packages }}"
- name: Install Veracrypt from RPM
dnf:
name: "{{ veracrypt_url }}"
state: present
disable_gpg_check: True

View File

@@ -9,6 +9,7 @@ wm_packages:
- dunst
- grim
- grimshot
- wdisplays
cli_packages:
- alacritty
@@ -32,14 +33,12 @@ cli_packages:
- git
- fd-find
- screen
- lf
- htop
general_packages:
- firefox
- emacs
- RemoteBox
- spice-vdaget
- network-manager-applet
- thunar
- ansible
@@ -68,4 +67,6 @@ doom_dep_packages:
font_packages:
- fontawesome5-fonts
- abattis-cantarell
- abattis-cantarell-fonts
veracrypt_url: https://launchpad.net/veracrypt/trunk/1.25.9/+download/veracrypt-1.25.9-CentOS-8-x86_64.rpm

View File

@@ -2,3 +2,4 @@
pip_packages:
- borgmatic
- keep
- flashfocus

View File

@@ -0,0 +1 @@
---

View File

@@ -0,0 +1 @@
---

View File

@@ -2,7 +2,30 @@
- name: Initial Setup Including Keys, Packages, and Users.
hosts: workstation
roles:
- base
- packages
- flatpak
- pip
- role: base
tags: base_tag
- role: packages
tags: packages_tag
- role: flatpak
tags: flatpak_tag
become: yes
become_user: opal
become_method: su
- role: pip
tags: pip_tag
become: yes
become_user: opal
become_method: su
- role: git
tags: git_tag
become: yes
become_user: opal
become_method: su
- role: copr
tags: copr_tag