Initial commit

main
dschier 1 year ago
parent eb4f24854a
commit 6cc7c0ea9a
  1. 14
      KUDOS.txt
  2. 120
      README.md
  3. 1
      tests/.gitkeep
  4. 80
      workstation.yml

@ -11,15 +11,13 @@ project:
contributor:
- name: "<name or handle>"
- name: "Daniel Schier"
role: "Owner"
site: "<website url>"
blog: "<blog url>"
mail: "<mail@domain.tld>"
chat: "<service:nick>, <service:channel>, <url>"
home: "<country>, <region>, <zip>, <city>, <address>"
work: "<company>, <job title>, <job description>"
note: "<free text notes>"
site: "https://while-true-do.io"
blog: "https://blog.while-true-do.io"
mail: "dschier@while-true-do.io"
chat: "libera.chat @dschier"
home: "Germany"
partner:

@ -7,125 +7,7 @@ reference: https://commonmark.org/
Code for the "Ansible - Linux Workstation Management" article.
## Motivation
<!-- TODO: Motivation
This section describes the motivation to create the code.
Why is this repository needed?
Which problem is solved?
Who may need it?
-->
## Description
<!-- TODO: Description
This section describes the product/code itself. Feel free to use subsections
to showcase Features, Pictures, Diagrams, etc.
What does this repository provide?
What does it not provide?
Which features are covered?
Optional: Add subsections for features, screenshots, etc.
-->
## Requirements
<!-- TODO: Requirements
This section describes what one needs to run the code in production.
What is needed beforehand?
What are prerequisites to start with an installation?
Are there any dependencies, that needs to be solved?
Optional: Use and link a docs/REQUIREMENTS.md
-->
## Install
<!-- TODO: Install
This section describes how to install the product to actually use it.
How to install the content?
Are there manual steps?
Providing a step-by-step guide is recommended.
Optional: Use and link a docs/INSTALL.md
-->
## Usage
<!-- TODO: Usage
This section describes how to use the product.
How to use the content?
Can you provide some simple examples?
Can you provide enhanced examples?
Optional: Use and link a docs/USAGE.md
-->
## Known Issues
<!-- TODO: Known Issues
This section is reserved to list known issues.
Is there something broken?
Are workarounds present?
-->
## Changelog
The repository contains a curated, chronological [changelog](CHANGELOG.md),
maintained by the owner for each release/tag.
## Contribute
Thank you so much for considering to contribute! We are happy, when someone is
joining the hard work. Please feel free to contribute, after having a look at
the Conventions.
- [Bugs and Feature Requests](https://code.while-true-do.io/blog/ansible-linux-workstation-management/issues)
- [Pull Requests](https://code.while-true-do.io/blog/ansible-linux-workstation-management/pulls)
<!-- TODO: Contribute
Please review and tweak the KUDOS.txt file.
-->
See who has contributed already in the [KUDOS.txt](KUDOS.txt).
## Develop
<!-- TODO: Develop
This section describes how one can start to help developing the code.
How to setup the development environment?
Are there special requirements?
Do you suggest / recommend something for developers?
Optional: Use and link a docs/DEVELOP.md
-->
## Test
<!-- TODO: Test
Add your guideline, how to test.
How to execute the tests locally?
What is automatically done?
Optional: Use and link a docs/TEST.md
Optional: Provide additional test scripts and helpers in tests/
-->
<https://blog.while-true-do.io/ansible-linux-workstation-management>
## License

@ -1 +0,0 @@
TODO: Remove this file or directory, if not needed

@ -0,0 +1,80 @@
---
- name: "Manage workstation"
hosts: "localhost"
connection: "local"
tasks:
- name: "Install Virtualization"
ansible.builtin.package:
name:
- "libvirt-client"
- "qemu-kvm"
- "libvirt-daemon-driver-network"
- "libvirt-daemon-config-network"
state: "present"
become: true
- name: "Install Vagrant"
ansible-builtin.package:
name: "vagrant"
state: "present"
become: true
- name: "Start & Enable libvirtd Service"
ansible-builtin.service:
name: "libvirtd.service"
state: "started"
enabled: true
become: true
- name: "Start & Enable thermald Service"
ansible-builtin.service:
name: "thermald.service"
state: "started"
enabled: true
become: true
- name: "Start & Enable fstrim Timer"
ansible-builtin.service:
name: "fstrim.timer"
state: "started"
enabled: true
become: true
- name: "Manage flathub Repository"
community.general.flatpak_remote:
name: "flathub"
state: "present"
flatpakrepo_url: "https://dl.flathub.org/repo/flathub.flatpakrepo"
method: "system"
become: true
- name: "Install GIMP Flatpak"
community.general.flatpak:
name: "org.gimp.GIMP"
state: "present"
become: true
- name: "Install VSCodium Flatpak"
community.general.flatpak:
name: "com.vscodium.codium"
state: "present"
become: true
- name: "Create Ansible VENV"
ansible.buitlin.pip:
name: "ansible"
virtualenv: "/home/USER/.venv-ansible"
- name: "Enable the NightLight"
community.general.dconf:
key: "/org/gnome/settings-daemon/plugins/color/night-light-enabled"
value: "true"
state: "present"
- name: "Window Buttons"
community.general.dconf:
key: "/org/gnome/desktop/wm/preferences/button-layout"
value: "'appmenu:minimize,maximize,close'"
state: "present"
Loading…
Cancel
Save