Compare commits
No commits in common. "carlosv" and "main" have entirely different histories.
9
install_ansible_rundeck.sh
Executable file → Normal file
9
install_ansible_rundeck.sh
Executable file → Normal file
@ -8,7 +8,7 @@
|
||||
# sets all passwords of users and the vscode server to "onemarcfifty"
|
||||
|
||||
USERPASSWORD=onemarcfifty
|
||||
SERVERURL="rundeck2.lan"
|
||||
|
||||
|
||||
# first we install some software
|
||||
|
||||
@ -29,7 +29,6 @@ echo "rundeck ALL=(ALL) NOPASSWD: ALL" >/etc/sudoers.d/rundeck
|
||||
# install ansible through pip
|
||||
|
||||
pip install ansible
|
||||
pip install zabbix-api
|
||||
|
||||
# download the rundeck installation script and run it directly
|
||||
# then install rundeck
|
||||
@ -40,8 +39,8 @@ apt -y install rundeck
|
||||
|
||||
# replace the localhost entries in the config files with the hostname
|
||||
|
||||
sed -i s/localhost/$SERVERURL/g /etc/rundeck/framework.properties
|
||||
sed -i s/localhost/$SERVERURL/g /etc/rundeck/rundeck-config.properties
|
||||
sed -i s/localhost/`hostname`/g /etc/rundeck/framework.properties
|
||||
sed -i s/localhost/`hostname`/g /etc/rundeck/rundeck-config.properties
|
||||
|
||||
# install mariadb
|
||||
apt install -y mariadb-server
|
||||
@ -92,7 +91,7 @@ Type=simple
|
||||
User=rundeck
|
||||
Environment=PASSWORD=$USERPASSWORD
|
||||
WorkingDirectory=/var/lib/rundeck
|
||||
ExecStart=/usr/bin/code-server --host 0.0.0.0 --disable-telemetry
|
||||
ExecStart=/usr/bin/code-server --host 0.0.0.0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user