Files
ansible/README.md
2025-12-28 11:16:29 +01:00

1.3 KiB

Ansible Setup for Fedora Workstations

Comprehensive Ansible configuration for managing Fedora Workstation laptops. This repository provides automated configuration management for system setup, package management, security hardening, and laptop-specific optimizations.

Running the Playbook

Basic Usage

Run the main playbook against localhost:

ansible-playbook -i inventory/hosts playbook.yml --ask-become-pass

The --ask-become-pass flag will prompt you for your sudo password, which is needed for most system configuration tasks.

Useful Variations

Dry run first (see what would change without making changes):

ansible-playbook -i inventory/hosts playbook.yml --check --diff

Check syntax before running:

ansible-playbook playbook.yml --syntax-check

Run only specific tags:

ansible-playbook -i inventory/hosts playbook.yml --tags "packages" --ask-become-pass

List all tasks that would be executed:

ansible-playbook -i inventory/hosts playbook.yml --list-tasks

Run against specific host:

ansible-playbook -i inventory/hosts playbook.yml --limit hostname --ask-become-pass

Recommendation

It's recommended to start with --check --diff to preview changes before actually applying them to your system.