„basics.yml“ ändern
This commit is contained in:
parent
4541fe071e
commit
2306ea2307
46
basics.yml
46
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,28 +340,24 @@
|
|||||||
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
|
|
||||||
PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
|
|
||||||
fi
|
|
||||||
export EDITOR="/usr/bin/vim"
|
|
||||||
export HISTSIZE=
|
|
||||||
export HISTFILESIZE=
|
|
||||||
export HISTTIMEFORMAT="[%F %T] "
|
|
||||||
if [ -f /etc/debian_version ]
|
|
||||||
then
|
|
||||||
export DEBIAN_FRONTEND='noninteractive'
|
|
||||||
export LANG="en_US.UTF-8"
|
|
||||||
alias ls='ls --color=auto'
|
|
||||||
alias grep='grep --colour=auto'
|
|
||||||
alias egrep='egrep --colour=auto'
|
|
||||||
alias fgrep='fgrep --colour=auto'
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
# show root@ when we don't have colors
|
PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
|
||||||
PS1+='\u@\h \w \$'
|
fi
|
||||||
|
export EDITOR="/usr/bin/vim"
|
||||||
|
export HISTSIZE=
|
||||||
|
export HISTFILESIZE=
|
||||||
|
export HISTTIMEFORMAT="[%F %T] "
|
||||||
|
if [ -f /etc/debian_version ]
|
||||||
|
then
|
||||||
|
export DEBIAN_FRONTEND='noninteractive'
|
||||||
|
export LANG="en_US.UTF-8"
|
||||||
|
alias ls='ls --color=auto'
|
||||||
|
alias grep='grep --colour=auto'
|
||||||
|
alias egrep='egrep --colour=auto'
|
||||||
|
alias fgrep='fgrep --colour=auto'
|
||||||
fi
|
fi
|
||||||
# execute for linuxmint
|
# execute for linuxmint
|
||||||
if [ -d /etc/linuxmint ]
|
if [ -d /etc/linuxmint ]
|
||||||
|
Loading…
Reference in New Issue
Block a user