„basics.yml“ ändern
This commit is contained in:
parent
4541fe071e
commit
2306ea2307
16
basics.yml
16
basics.yml
@ -190,14 +190,6 @@
|
|||||||
name: Europe/Berlin
|
name: Europe/Berlin
|
||||||
when: nocontainer.stat.exists == true
|
when: nocontainer.stat.exists == true
|
||||||
|
|
||||||
# - name: Create {{ ansible_facts['hostname'] }}adm User
|
|
||||||
# ansible.builtin.user:
|
|
||||||
# name: "{{ ansible_facts['hostname'] }}adm"
|
|
||||||
# comment: "{{ ansible_facts['hostname'] }}-Admin"
|
|
||||||
# uid: 1000
|
|
||||||
# group: users
|
|
||||||
# password: $6$Zqar9GCRvbVgPlZ/$L2xAMekMjE5PXuWY0WbmUcugJkqD14O6/cgC02O0hT5vOdiDj5Pcp6FU/Zz.rCkWKVSPsmTc2OtXAmQIHLc1V1
|
|
||||||
|
|
||||||
- name: Allow the hostnameadm User all sudo commands
|
- name: Allow the hostnameadm User all sudo commands
|
||||||
community.general.sudoers:
|
community.general.sudoers:
|
||||||
name: ALL
|
name: ALL
|
||||||
@ -348,8 +340,8 @@
|
|||||||
group: root
|
group: root
|
||||||
marker: "# {mark} ANSIBLE MANAGED BLOCK"
|
marker: "# {mark} ANSIBLE MANAGED BLOCK"
|
||||||
block: |
|
block: |
|
||||||
if ${use_color} ; then
|
if [ "${USER}" = root ]
|
||||||
if [ ${USER} = root ] ; then
|
then
|
||||||
PS1='\[\033[01;31m\]\h\[\033[01;34m\] \w \$\[\033[00m\] '
|
PS1='\[\033[01;31m\]\h\[\033[01;34m\] \w \$\[\033[00m\] '
|
||||||
else
|
else
|
||||||
PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
|
PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
|
||||||
@ -367,10 +359,6 @@
|
|||||||
alias egrep='egrep --colour=auto'
|
alias egrep='egrep --colour=auto'
|
||||||
alias fgrep='fgrep --colour=auto'
|
alias fgrep='fgrep --colour=auto'
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
# show root@ when we don't have colors
|
|
||||||
PS1+='\u@\h \w \$'
|
|
||||||
fi
|
|
||||||
# execute for linuxmint
|
# execute for linuxmint
|
||||||
if [ -d /etc/linuxmint ]
|
if [ -d /etc/linuxmint ]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user