Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bbguimaraes
dotfiles
Commits
17c581b0
Commit
17c581b0
authored
Jun 01, 2022
by
bbguimaraes
Browse files
ansible: remove Fedora configuration
parent
dedbb87e
Changes
4
Hide whitespace changes
Inline
Side-by-side
ansible/base/base.yaml
View file @
17c581b0
...
...
@@ -12,16 +12,10 @@
-
sudo
-
tmux
-
vim
-
name
:
install base system packages
(arch)
-
name
:
install base system packages
package
:
state
:
present
name
:
pkgfile
when
:
ansible_os_family == 'Archlinux'
-
name
:
install base system packages (redhat)
package
:
state
:
present
name
:
epel-release
when
:
ansible_os_family == 'RedHat' and ansible_distribution != 'Fedora'
-
hosts
:
all
tags
:
base
tasks
:
...
...
@@ -67,7 +61,6 @@
command
:
argv
:
[
'
pkgfile'
,
'
--update'
]
creates
:
/var/cache/pkgfile/core.files
when
:
ansible_os_family == 'Archlinux'
-
name
:
disable root SSH password login
lineinfile
:
dest
:
/etc/ssh/sshd_config
...
...
@@ -81,21 +74,10 @@
timezone
:
name
:
UTC
hwclock
:
UTC
-
name
:
check if the ntp service is enabled
(arch)
-
name
:
check if the ntp service is enabled
command
:
timedatectl show --property NTP --value
register
:
rc
changed_when
:
False
when
:
ansible_os_family == 'Archlinux'
-
name
:
enable ntp service (arch)
command
:
timedatectl set-ntp yes
when
:
ansible_os_family == 'Archlinux' and rc.stdout == "no"
-
name
:
check if the ntp service is enabled (redhat)
command
:
timedatectl status
register
:
rc
changed_when
:
False
when
:
ansible_os_family == 'RedHat'
-
name
:
enable ntp service (redhat)
-
name
:
enable ntp service
command
:
timedatectl set-ntp yes
when
:
|
ansible_os_family == 'RedHat'
and 'NTP enabled: no' in rc.stdout
when
:
rc.stdout == "no"
ansible/install.yaml
View file @
17c581b0
...
...
@@ -5,7 +5,6 @@
package
:
state
:
present
name
:
"
{{
item
}}"
when
:
ansible_os_family == 'Archlinux'
with_items
:
-
grub
-
os-prober
...
...
@@ -16,30 +15,23 @@
-
>-
# dev
ansible busybox clang cloc cmake colordiff ctags dash distcc emacs gdb go
graphviz hub ipython musl podman python-pip rust tidy tig vim-ctrlp
vim-fugitive vim-gitgutter
vim-fugitive vim-gitgutter arm-none-eabi-gcc base-devel ccache cjson dash
devtools doxygen encfs libc++ llvm mit-scheme mypy opengl-man-pages pocl
qemu renderdoc valgrind vim-tagbar
-
>-
# xorg
mesa xorg xorg-xinit
-
>-
# graphical
calibre chromium dmenu feh gimp i3lock i3status qt5ct redshift
rxvt-unicode simplescreenrecorder scrot xclip xdotool
rxvt-unicode simplescreenrecorder scrot xclip xdotool blender breeze
celluloid dunst firefox i3-wm imagemagick inkscape kdenlive
libreoffice-fresh mednafen picom stellarium ttf-dejavu
-
>-
#audio
audacity
audacity alsa-utils hydrogen mpv musescore pavucontrol pulseaudio
pulseaudio-alsa pulseaudio-bluetooth
-
>-
# tools
acpi discount ffmpeg fish gnuplot inotify-tools ltrace lsof moreutils
msmtp mutt nextcloud-client offlineimap p7zip pass perf poppler pv
python-matplotlib ripgrep unrar strace units vdirsyncer weechat
arch_pkgs
:
-
>-
# dev
arm-none-eabi-gcc base-devel ccache cjson dash devtools doxygen encfs
libc++ llvm mit-scheme mypy opengl-man-pages pocl qemu renderdoc valgrind
vim-tagbar
-
>-
# xorg
mesa xorg xorg-xinit
-
>-
# graphical
blender breeze celluloid dunst firefox i3-wm imagemagick inkscape kdenlive
libreoffice-fresh mednafen picom stellarium ttf-dejavu
-
>-
# audio
alsa-utils ardour hydrogen mpv musescore pavucontrol pulseaudio
pulseaudio-alsa pulseaudio-bluetooth
-
>-
# tools
android-tools bc bind-tools bluez bluez-utils jq khal lynx openbsd-netcat
pacman-contrib pigz pixz rlwrap sshfs unzip weechat-matrix words
youtube-dl
...
...
@@ -52,21 +44,6 @@
opencl-headers ocl-icd qt5-charts vulkan-intel vulkan-devel
-
>-
# nngn tests
freeglut glu
fedora_pkgs
:
-
>-
# dev
autoconf automake awscli cargo cjson distcc-server docker-compose
fuse-encfs golang-godoc gotags libarchive-devel libcurl-devel
libsecret-devel openssl-devel patch plasma-breeze python3-mypy
python3-tabulate qt5-devel rustfmt ShellCheck
-
>-
# graphical
compton i3 libreoffice qpdfview-qt5
-
>-
# tools
bind-utils ftp fuse-sshfs hugo libolm-devel nodejs passmenu pinentry-qt
-
>-
# work
krb5-workstation openldap-clients pyOpenSSL python-cryptography
python-lxml
fedora_groups
:
-
'
@Development
tools'
tasks
:
-
name
:
enable multilib
blockinfile
:
...
...
@@ -76,15 +53,9 @@
block
:
|
[multilib]
Include = /etc/pacman.d/mirrorlist
when
:
ansible_os_family == 'Archlinux'
-
name
:
install base packages
package
:
name
:
'
{{
((pkgs+arch_pkgs)|join("
")).split("
")
}}'
when
:
ansible_os_family == 'Archlinux'
-
name
:
install base packages
package
:
name
:
'
{{
((pkgs+fedora_pkgs)|join("
")).split("
")
+
fedora_groups
}}'
when
:
ansible_os_family == 'RedHat'
name
:
'
{{
(pkgs|join("
")).split("
")
}}'
-
hosts
:
all
tasks
:
-
name
:
enable/start services
...
...
@@ -104,8 +75,7 @@
aurutils_repo
:
/var/lib/pacman/aurutils
aurutils_gpg_key
:
DBE7D3DD8C81D58D0A13D0E76BC26A17B9B7018A
tasks
:
-
when
:
ansible_os_family == 'Archlinux'
block
:
-
block
:
-
name
:
create local repository directory
file
:
state
:
directory
...
...
ansible/install/gpg.yaml
View file @
17c581b0
-
hosts
:
all
tasks
:
-
when
:
ansible_os_family == 'Archlinux'
block
:
-
block
:
-
import_tasks
:
../aur.yaml
vars
:
{
"
pkg"
:
"
pam-gnupg"
}
-
name
:
enable for console logins
...
...
ansible/user/user.yaml
View file @
17c581b0
...
...
@@ -71,7 +71,7 @@
-
[
'
{{
home
}}/n/subs.sqlite'
,
'
.local/share/subs/db'
]
-
[
'
{{
home
}}/src/proton-bridge/proton-bridge'
,
'
.local/bin/proton-bridge'
]
-
[
'
{{
home
}}/src/subs/subs'
,
'
.local/bin/subs'
]
-
name
:
setup CA symlinks
(archlinux)
-
name
:
setup CA symlinks
file
:
state
:
link
src
:
/etc/ssl/certs/ca-certificates.crt
...
...
@@ -79,16 +79,6 @@
loop
:
-
.mutt/tls_trust_file
-
.config/offlineimap/tls_trust_file
when
:
ansible_os_family == 'Archlinux'
-
name
:
setup CA symlinks (fedora)
file
:
state
:
link
src
:
/etc/ssl/certs/ca-bundle.crt
dest
:
'
{{
home
}}/{{
item
}}'
loop
:
-
.mutt/tls_trust_file
-
.config/offlineimap/tls_trust_file
when
:
ansible_os_family == 'RedHat'
-
name
:
ensure files have been created/imported
stat
:
'
path={{
home
}}/{{
item
}}'
register
:
st
...
...
@@ -136,8 +126,7 @@
vars
:
dir
:
'
{{
ansible_env.HOME
}}/.weechat'
tasks
:
-
when
:
ansible_os_family == 'Archlinux'
block
:
-
block
:
-
name
:
install weechat-edit-git
import_tasks
:
../aur.yaml
vars
:
{
"
pkg"
:
"
weechat-edit-git"
}
...
...
@@ -150,51 +139,7 @@
-
lua/autoload
-
python
-
python/autoload
-
name
:
clone repositories
git
:
repo
:
'
{{
item.0
}}'
dest
:
'
{{
item.1
}}'
update
:
no
loop
:
-
-
https://github.com/poljar/weechat-matrix.git
-
'
{{
dir
}}/python/weechat-matrix'
-
-
https://gitlab.matrix.org/matrix-org/olm
-
'
{{
dir
}}/python/olm'
when
:
ansible_os_family == 'RedHat'
-
when
:
ansible_os_family == 'RedHat'
block
:
-
name
:
create olm build directory
file
:
state
:
directory
path
:
'
{{
dir
}}/python/olm/build'
-
name
:
build olm (cmake)
command
:
cmd
:
cmake ..
chdir
:
'
{{
dir
}}/python/olm/build'
creates
:
'
{{
dir
}}/python/olm/build/Makefile'
-
name
:
build olm (make)
command
:
cmd
:
make
chdir
:
'
{{
dir
}}/python/olm/build'
creates
:
'
{{
dir
}}/python/olm/build/lib64/libolm.so'
-
name
:
create virtualenv
command
:
cmd
:
virtualenv '{{ dir }}/python/env'
creates
:
'
{{
dir
}}/python/env'
when
:
ansible_os_family == 'RedHat'
register
:
rc
-
name
:
install virtualenv packages
command
:
>
env
CPATH={{ dir }}/python/olm/include
LIBRARY_PATH={{ dir }}/python/olm/build/lib64
'{{ dir }}/python/env/bin/pip'
install -r '{{ dir }}/python/weechat-matrix/requirements.txt'
when
:
rc.changed
-
name
:
create symlinks
when
:
ansible_os_family == 'Archlinux'
file
:
state
:
link
src
:
'
{{
item.0
}}'
...
...
@@ -204,15 +149,6 @@
-
'
/usr/share/weechat/python/weechat-matrix.py'
-
'
python/autoload/weechat-matrix.py'
-
[
'
/lib/weechat/python/edit.py'
,
'
python/autoload/edit.py'
]
-
name
:
create symlinks
file
:
state
:
link
src
:
'
{{
item.0
}}'
dest
:
'
{{
dir
}}/{{
item.1
}}'
loop
:
-
[
'
weechat-matrix/matrix'
,
'
python/matrix'
]
-
[
'
../weechat-matrix/main.py'
,
'
python/autoload/matrix.py'
]
when
:
ansible_os_family == 'RedHat'
-
name
:
set weechat variables
ini_file
:
path
:
'
{{
ansible_env.HOME
}}/.weechat/{{
item.file
}}'
...
...
@@ -248,8 +184,7 @@
name
:
aur pkgs
tags
:
aur
tasks
:
-
when
:
ansible_os_family == 'Archlinux'
block
:
-
block
:
-
import_tasks
:
../aur.yaml
vars
:
{
"
pkg"
:
"
duc"
}
-
import_tasks
:
../aur.yaml
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment