yum install -y wget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# configure_fail2ban.sh | |
# Adicionar IPs na whitelist | |
ignoreip= | |
yum -q install -y fail2ban 2> /dev/null | |
cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local | |
sed -i "s|ignoreip = 127.0.0.1/8.*|ignoreip = 127.0.0.1/8 ${ignoreip}|g" /etc/fail2ban/jail.local | |
sed -i '/\[apache-badbots\]/a enabled = true' /etc/fail2ban/jail.local |
Utilizar a v18.1 do minikube
https://github.com/kubernetes/minikube/releases/tag/v1.18.1 https://github.com/kubernetes/minikube/releases/download/v1.18.1/minikube-linux-amd64
wget https://github.com/kubernetes/minikube/releases/download/v1.18.1/minikube-linux-amd64
sudo mv minikube-linux-amd64 /usr/local/bin/minikube
sudo chmod +x /usr/local/bin/minikube
minikube version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dnf -y upgrade | |
sudo dnf install -y ansible vim | |
ansible --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Criar o diretório e acessá-lo | |
### | |
mkdir lab_ansible ; cd lab_ansible | |
### | |
# Criar o playbook que utilizará a role citada | |
### | |
echo '- hosts: localhost | |
roles: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[rafael@fedora lab_ansible]$ ansible-playbook InstallGnomeExtensions.yml | |
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' | |
PLAY [localhost] ******************************************************************************************************************************************************* | |
TASK [Gathering Facts] ************************************************************************************************************************************************* | |
ok: [localhost] | |
TASK [jaredhocutt.gnome_extensions : Parse Gnome Shell version] ******************************************************************************************************** | |
ok: [localhost] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: localhost | |
roles: | |
- role: jaredhocutt.gnome_extensions | |
vars: | |
gnome_extension_ids: | |
- 779 # Clipboard Indicator by @Tudmotu | |
- 1319 # GSConnect by @dlandau | |
- 750 # OpenWeather by @jens | |
- 906 # Sound Input & Output Device Chooser by @kgshank | |
- 19 # User Themes by @fmuellner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PLAY RECAP ************************************************************************************************************************************************************* | |
localhost : ok=38 changed=16 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: localhost | |
roles: | |
- role: jaredhocutt.gnome_extensions | |
vars: | |
gnome_extension_ids: | |
- 779 # Clipboard Indicator by @Tudmotu | |
- 1319 # GSConnect by @dlandau | |
- 750 # OpenWeather by @jens | |
- 906 # Sound Input & Output Device Chooser by @kgshank | |
- 19 # User Themes by @fmuellner |
OlderNewer