https://github.com/jftuga/ansible_fedora_post_install
Install packages onto Fedora system via Ansible playbook
https://github.com/jftuga/ansible_fedora_post_install
Last synced: 4 months ago
JSON representation
Install packages onto Fedora system via Ansible playbook
- Host: GitHub
- URL: https://github.com/jftuga/ansible_fedora_post_install
- Owner: jftuga
- License: mit
- Created: 2021-11-26T15:10:32.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-26T15:31:52.000Z (over 4 years ago)
- Last Synced: 2025-03-24T19:15:43.287Z (about 1 year ago)
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible_fedora_post_install
Install packages onto Fedora system via Ansible playbook
## Synopsis
This playbook will install packages via `dnf` onto a Fedora system. It has been tested with Fedora 35 running on a AWS EC2 `t3a.small` instance.
## Playbook Details
1) Configure the [inventory.ini](inventory.ini) file.
* * Replace `w.x.y.z` with your own IP address
* * Set the `ansible_ssh_private_key_file` value
* * Set the `ansible_user` value
* * * **Note:** This user should be able to ssh into the remote system without having to be prompted to accept any ssh keys by using the `ansible_ssh_private_key_file` file mentioned above
2) Edit `fedora_packages.yml` to customize packages you want installed
## Execution
```shell
ansible-playbook -i inventory.ini fedora_packages.yml
```
## Post install
Verify package installation:
```shell
# to see the last 50 installed packages, change 25 to 50
sudo rpm -qa --last | head -25
```