Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
ansible-shared
common
Commits
f7de63a0
Commit
f7de63a0
authored
7 years ago
by
Lars Beckers
Browse files
Options
Downloads
Patches
Plain Diff
shell: new grml-zsh-config deployment
parent
6b49130e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
shell/tasks/shell.yml
+43
-14
43 additions, 14 deletions
shell/tasks/shell.yml
with
44 additions
and
14 deletions
.gitignore
0 → 100644
+
1
−
0
View file @
f7de63a0
*.pkg.tar.xz
This diff is collapsed.
Click to expand it.
shell/tasks/shell.yml
+
43
−
14
View file @
f7de63a0
...
...
@@ -2,7 +2,10 @@
# file: roles/common/tasks/shell.yml
-
name
:
ensure installation of basic shell commands
apt
:
state=latest name={{ item }} install_recommends=no
apt
:
name
:
"
{{
item
}}"
state
:
installed
install_recommends
:
no
with_items
:
-
git
-
vim
...
...
@@ -13,7 +16,9 @@
-
shell
-
name
:
ensure installaton of some additional software
apt
:
state=latest name={{ item }}
apt
:
name
:
"
{{
item
}}"
state
:
installed
with_items
:
-
aptitude
-
atop
...
...
@@ -51,39 +56,63 @@
-
packages
-
shell
-
name
:
ensure zsh-grml is available
get_url
:
url=http://git.grml.org/f/grml-etc-core/etc/zsh/zshrc dest={{ item }} owner=root group=root mode=0644
with_items
:
-
/etc/zsh/zshrc
-
/root/.zshrc
-
name
:
ensure we have an up-to-date version of grml-zsh-config
get_url
:
url
:
https://www.archlinux.org/packages/extra/any/grml-zsh-config/download/
dest
:
"
{{
role_path
}}/files/"
delegate_to
:
localhost
run_once
:
True
register
:
grml_zsh
tags
:
-
config
-
shell
-
name
:
ensure zsh-grml is the default
get_url
:
url=http://git.grml.org/f/grml-etc-core/etc/skel/.zshrc dest={{ item }} owner=root group=root mode=0640
with_items
:
-
/etc/skel/.zshrc
-
name
:
ensure grml-zsh-config is available
unarchive
:
src
:
"
{{
grml_zsh.dest
}}"
dest
:
/
extra_opts
:
"
--exlcude=.[A-Z]*"
when
:
-
grml_zsh.changed
-
not grml_zsh.failed
tags
:
-
config
-
shell
-
name
:
ensure root uses the global zshrc
copy
:
src
:
/etc/skel/.zshrc
dest
:
/root/.zshrc
remote_src
:
yes
tags
:
-
config
-
shell
-
name
:
ensure deployment of a fancy vimrc for root
copy
:
src=root/vimrc dest=/root/.vimrc owner=root group=root mode=0640
copy
:
src
:
root/vimrc
dest
:
/root/.vimrc
owner
:
root
group
:
root
mode
:
0640
tags
:
-
config
-
shell
-
root
-
name
:
ensure a properly configured root account
user
:
name=root shell=/bin/zsh
user
:
name
:
root
shell
:
/bin/zsh
tags
:
-
config
-
shell
-
root
-
name
:
ensure that pcspeaker remains silent
kernel_blacklist
:
name=pcspkr state=present
kernel_blacklist
:
name
:
pcspkr
state
:
present
notify
:
-
rerun depmod
-
update initramfs
...
...
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