Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lzap/lzap-dev-ansible
Ansible playbook for my Fedora development setup
https://github.com/lzap/lzap-dev-ansible
Last synced: about 1 month ago
JSON representation
Ansible playbook for my Fedora development setup
- Host: GitHub
- URL: https://github.com/lzap/lzap-dev-ansible
- Owner: lzap
- Created: 2024-04-30T14:35:32.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-09T07:36:50.000Z (8 months ago)
- Last Synced: 2024-10-14T23:25:02.168Z (3 months ago)
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lzap's Fedora dev setup
Ansible playbook for setting up my Fedora development box. Probably not very
useful to you.This is only tested on Fedora both as an Ansible host and target system.
Warning: This playbook does some things which are not recommended for
production or real use like turning off SELinux or in-memory only journal.## How to use this
On the Ansible host:
dnf install ansible
ansible-galaxy collection install fedora.linux_system_roles
ansible-galaxy install linux-system-roles.tunedBefore executing the, make sure networking is correctly set up, custom routes
configured and IPv6 is disabled since networking is unmanaged via Ansible.
Modules do not use become/sudo, deploy a SSH key to the root account and permit
login via keys:mkdir -p /root/.ssh
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEhnn80ZywmjeBFFOGm+cm+5HUwm62qTVnjKlOdYFLHN [email protected]" >> /root/.ssh/authorized_keys
chmod 600 /root/.ssh/authorized_keys
echo "PermitRootLogin prohibit-password" > /etc/ssh/sshd_config.d/prohibit-root-password
systemctl restart sshdBecause journald will be configured to transient mode, old logs can be deleted:
journalctl --rotate --vacuum-files=1
To execute the playbook:
ANSIBLE_DISPLAY_SKIPPED_HOSTS=false ANSIBLE_DISPLAY_OK_HOSTS=false ansible-playbook -i [email protected], dev.yaml
## Private assets
This public Ansible playbook does not contain any sensitive data, here are few commands which I need to run manually. SSH keys:
scp $HOME/.ssh/{id_ed25519,id_rsa,fedorapeople_rsa}{,.pub} [email protected]:.ssh
## LICENSE
Public domain.