Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
ansible-desktop-playbooks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ansible
ansible-desktop-playbooks
Commits
34d48bf2
Commit
34d48bf2
authored
9 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
- Playbook.
parent
2e28c735
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+12
-0
12 additions, 0 deletions
.gitignore
README
+0
-14
0 additions, 14 deletions
README
README.rst
+4
-0
4 additions, 0 deletions
README.rst
playbook.yml
+56
-0
56 additions, 0 deletions
playbook.yml
with
72 additions
and
14 deletions
.gitignore
0 → 100644
+
12
−
0
View file @
34d48bf2
*.swp
*.swo
~*
*~
.DS_Store
__pycache__
*.pyc
.cache/
.molecule/
.vagrant/
*.log
*.retry
This diff is collapsed.
Click to expand it.
README
deleted
100644 → 0
+
0
−
14
View file @
2e28c735
ansible-desktop
###############
Ansible playbook for setting up new desktops.
TODO
----
- Allow avahi in home and work firewalld zones.
- Allow ssh in home firewalld zone.
- Set /etc/default/grub.
- Systemd journal.
- Systemd timesyncd.
- Internal NATed network for nspawn using networkd.
This diff is collapsed.
Click to expand it.
README.rst
0 → 100644
+
4
−
0
View file @
34d48bf2
ansible-role-desktop
####################
Ansible playbook for setting up new desktops. For personal use.
This diff is collapsed.
Click to expand it.
playbook.yml
0 → 100644
+
56
−
0
View file @
34d48bf2
---
-
hosts
:
all
tasks
:
-
name
:
apt install
with_items
:
-
plymouth
-
network-manager
-
initramfs-tools
apt
:
name
:
'
{{
item
}}'
state
:
present
update_cache
:
yes
cache_valid_time
:
3600
-
name
:
Set NetworkManager to ignore some interfaces
ini_file
:
dest
:
/etc/NetworkManager/NetworkManager.conf
section
:
keyfile
option
:
unmanaged-devices
value
:
interface-name:docker0;interface-name:vboxnet0;interface-name:nspawnbr0
state
:
present
-
name
:
Configure Plymouth
ini_file
:
dest
:
/etc/plymouth/plymouthd.conf
section
:
Daemon
option
:
Theme
value
:
spinner
register
:
configure_plymouth
-
name
:
Update initramfs
when
:
configure_plymouth.changed
command
:
/usr/sbin/update-initramfs -u
-
name
:
Configure GRUB
with_dict
:
GRUB_TIMEOUT
:
1
GRUB_CMDLINE_LINUX_DEFAULT
:
'
quiet
cgroup_enable=memory
splash
allow-discards
root_trim=yes
swapaccount=1'
lineinfile
:
dest
:
/etc/default/grub
line
:
'
{{
item.key
}}="{{
item.value
}}"'
regexp
:
'
^{{
item.key
}}='
state
:
present
register
:
configure_grub
-
name
:
Update GRUB
when
:
configure_grub.changed
command
:
/usr/sbin/update-grub
-
name
:
Make /tmp tmpfs mount
mount
:
fstype
:
tmpfs
name
:
/tmp
src
:
none
state
:
present
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment