mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-10-27 02:34:43 +00:00
Compare commits
2 commits
eaed41db2c
...
cb7b920aa1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cb7b920aa1 | ||
|
|
38a3bed537 |
5 changed files with 8 additions and 6 deletions
|
|
@ -386,7 +386,7 @@ To get things up and running just follow these steps:
|
||||||
|
|
||||||
Red Hat Enterprise Linux (RHEL) is a somewhat unique case in that:
|
Red Hat Enterprise Linux (RHEL) is a somewhat unique case in that:
|
||||||
|
|
||||||
1. Connections to Red Hat repositories depend on a Red Hat subscription. You will not be able to update the OS or install new packages if the targeted machine is not subscribed. **If your server is not attached to a Red Hat subscription, installation will fail!
|
1. Connections to Red Hat repositories depend on a Red Hat subscription. You will not be able to update the OS or install new packages if the targeted machine is not subscribed. **If your server is not attached to a Red Hat subscription, installation will fail!**
|
||||||
2. Ansible is installed from a RHEL-specific repository by the installer. Do not attempt to install it from the upstream repositories.
|
2. Ansible is installed from a RHEL-specific repository by the installer. Do not attempt to install it from the upstream repositories.
|
||||||
3. Docker is installed from EPEL, which is installed by the installer script. Do not attempt to install it from the community installer script.
|
3. Docker is installed from EPEL, which is installed by the installer script. Do not attempt to install it from the community installer script.
|
||||||
2. T-Pot will only install successfully on RHEL >= 8. One of the convenience dependencies (`grc`) depends on Python 2, which was removed after RHEL 7. It is omitted from the RHEL installation of T-Pot.
|
2. T-Pot will only install successfully on RHEL >= 8. One of the convenience dependencies (`grc`) depends on Python 2, which was removed after RHEL 7. It is omitted from the RHEL installation of T-Pot.
|
||||||
|
|
|
||||||
|
|
@ -197,7 +197,7 @@ case ${myCURRENT_DISTRIBUTION} in
|
||||||
echo
|
echo
|
||||||
echo ${myINSTALL_NOTIFICATION}
|
echo ${myINSTALL_NOTIFICATION}
|
||||||
echo
|
echo
|
||||||
sudo dnf -y --refresh install ${myPACKAGES_ROCKY_RHEL}
|
sudo dnf -y --refresh install ${myPACKAGES_ROCKY}
|
||||||
ansible-galaxy collection install ansible.posix
|
ansible-galaxy collection install ansible.posix
|
||||||
;;
|
;;
|
||||||
"Red Hat Enterprise Linux")
|
"Red Hat Enterprise Linux")
|
||||||
|
|
|
||||||
|
|
@ -759,24 +759,25 @@
|
||||||
when: ansible_distribution in ["AlmaLinux", "Debian", "Fedora", "openSUSE Tumbleweed", "Raspbian", "RedHat", "Rocky", "Ubuntu"]
|
when: ansible_distribution in ["AlmaLinux", "Debian", "Fedora", "openSUSE Tumbleweed", "Raspbian", "RedHat", "Rocky", "Ubuntu"]
|
||||||
failed_when: ansible_user_id == "root"
|
failed_when: ansible_user_id == "root"
|
||||||
|
|
||||||
- name: Add aliases (All except RHEL)
|
- name: Add aliases
|
||||||
blockinfile:
|
blockinfile:
|
||||||
path: ~/.bashrc
|
path: ~/.bashrc
|
||||||
block: |
|
block: |
|
||||||
alias dps='grc --colour=on docker ps -f status=running -f status=exited --format "table {{'{{'}}.Names{{'}}'}}\\t{{'{{'}}.Status{{'}}'}}\\t{{'{{'}}.Ports{{'}}'}}" | sort'
|
alias dps='{{ "grc --colour=on " if ansible_distribution != "RedHat" else "" }}docker ps -f status=running -f status=exited --format "table {{'{{'}}.Names{{'}}'}}\\t{{'{{'}}.Status{{'}}'}}\\t{{'{{'}}.Ports{{'}}'}}" | sort'
|
||||||
alias dpsw='watch -c bash -ic dps'
|
alias dpsw='watch -c bash -ic dps'
|
||||||
alias mi='micro'
|
alias mi='micro'
|
||||||
alias sudo='sudo '
|
alias sudo='sudo '
|
||||||
marker: "# {mark} ANSIBLE MANAGED BLOCK"
|
marker: "# {mark} ANSIBLE MANAGED BLOCK"
|
||||||
insertafter: EOF
|
insertafter: EOF
|
||||||
state: present
|
state: present
|
||||||
when: ansible_distribution in ["AlmaLinux", "Debian", "Fedora", "openSUSE Tumbleweed", "Raspbian", "Rocky", "Ubuntu"]
|
when: ansible_distribution in ["AlmaLinux", "Debian", "Fedora", "openSUSE Tumbleweed", "Raspbian", "RedHat", "Rocky", "Ubuntu"]
|
||||||
tags:
|
tags:
|
||||||
- "AlmaLinux"
|
- "AlmaLinux"
|
||||||
- "Debian"
|
- "Debian"
|
||||||
- "Fedora"
|
- "Fedora"
|
||||||
- "openSUSE Tumbleweed"
|
- "openSUSE Tumbleweed"
|
||||||
- "Raspbian"
|
- "Raspbian"
|
||||||
|
- "RedHat"
|
||||||
- "Rocky"
|
- "Rocky"
|
||||||
- "Ubuntu"
|
- "Ubuntu"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,7 @@
|
||||||
target: DROP
|
target: DROP
|
||||||
permanent: yes
|
permanent: yes
|
||||||
state: enabled
|
state: enabled
|
||||||
when: ansible_distribution in ["AlmaLinux", "Fedora", "openSUSE Tumbleweed", "Rocky"]
|
when: ansible_distribution in ["AlmaLinux", "Fedora", "openSUSE Tumbleweed", "RedHat", "Rocky"]
|
||||||
tags:
|
tags:
|
||||||
- "AlmaLinux"
|
- "AlmaLinux"
|
||||||
- "Fedora"
|
- "Fedora"
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,7 @@ if [[ "${myANSIBLE_DISTRIBUTIONS[@]}" =~ "${myCURRENT_DISTRIBUTION}" ]];
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
myANSIBLE_TAG=${myCURRENT_DISTRIBUTION}
|
myANSIBLE_TAG=${myCURRENT_DISTRIBUTION}
|
||||||
|
fi
|
||||||
|
|
||||||
# Check type of sudo access
|
# Check type of sudo access
|
||||||
if myANSIBLE_TAG="Debian";
|
if myANSIBLE_TAG="Debian";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue