Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Admin9705 committed Feb 21, 2019
2 parents 549313c + 00e03cd commit ff2ae87
Show file tree
Hide file tree
Showing 9 changed files with 269 additions and 124 deletions.
3 changes: 2 additions & 1 deletion menu/appguard/rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ tee <<-EOF
EOF
sleep 2
ansible-playbook /opt/coreapps/apps/$app.yml
if [ -e "/opt/coreapps/apps/$app.yml" ]; then ansible-playbook /opt/coreapps/apps/$app.yml; fi
if [ -e "/opt/coreapps/communityapps/$app.yml" ]; then ansible-playbook /opt/communityapps/apps/$app.yml; fi
done

echo ""
Expand Down
147 changes: 105 additions & 42 deletions menu/dependency/dependency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,109 @@
- hosts: localhost
gather_facts: true
tasks:
- name: Install Common Packages (Takes Awhile)
apt: "name={{item}} state=present"
with_items:
- fuse
- nano
- fail2ban
- wget
- lsb-release
- figlet
- update-notifier-common
- software-properties-common
- unrar
- unzip
- glances
- python-pip
- python3-pip
- python-passlib
- zip
- curl
- man-db
- htop
- openssh-server
- dirmngr
- npm
- zip
- apt-transport-https
- ca-certificates
- tree
- ncdu
- ctop
- dialog
- dnsutils
- mc
- apache2-utils
- lsof
- pwgen
- gawk
- python-lxml
- acl
- bc

- name: Install Common Packages (Takes Awhile)
apt:
update_cache: yes
name:
- fuse
- nano
- fail2ban
- wget
- lsb-release
- figlet
- update-notifier-common
- software-properties-common
- unrar
- unzip
- glances
- python-pip
- python3-pip
- python-passlib
- zip
- curl
- man-db
- htop
- openssh-server
- dirmngr
- npm
- zip
- apt-transport-https
- ca-certificates
- tree
- ncdu
- ctop
- dialog
- dnsutils
- mc
- apache2-utils
- lsof
- pwgen
- gawk
- python-lxml
- acl
- bc
#ignore_errors: yes

# apt:
# name:
# - fuse
# - nano
# - fail2ban
# - wget
# - lsb-release
# - figlet
# - update-notifier-common
# - software-properties-common
# - unrar
# - unzip
# - glances
# - python-pip
# - python3-pip
# - python-passlib
# - zip
# - curl
# - man-db
# - htop
# - openssh-server
# - dirmngr
# - npm
# - zip
# - apt-transport-https
# - ca-certificates
# - tree
# - ncdu
# - ctop
# - dialog
# - dnsutils
# - mc
# - apache2-utils
# - lsof
# - pwgen
# - gawk
# - python-lxml
# - acl
# - bc
- name: Update pip packages for python3
pip:
name:
- pip
- setuptools
- pyOpenSSL
- requests
- netaddr
- docker
- ansible
state: latest
executable: pip3

- name: Update pip packages for python2
pip:
name:
- pip
- setuptools
- pyOpenSSL
- requests
- netaddr
- docker
- ansible
state: latest
executable: pip2
144 changes: 104 additions & 40 deletions menu/dependency/dependencydeb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,108 @@
# GNU: General Public License v3.0
################################################################################
---
- hosts: localhost
gather_facts: true
tasks:
- name: Install Common Packages (Takes Awhile)
apt: "name={{item}} state=present"
with_items:
- fuse
- nano
- fail2ban
- wget
- lsb-release
- figlet
- software-properties-common
- unrar
- unzip
- glances
- python-pip
- python3-pip
- python-passlib
- zip
- curl
- man-db
- htop
- openssh-server
- dirmngr
- zip
- apt-transport-https
- ca-certificates
- tree
- ncdu
- ctop
- dialog
- dnsutils
- mc
- apache2-utils
- lsof
- pwgen
- gawk
- python-lxml
- acl
- bc
# New ansible way of doing this, this should replace old method soon.
# apt:
# name:
# - fuse
# - nano
# - fail2ban
# - wget
# - lsb-release
# - figlet
# - software-properties-common
# - unrar
# - unzip
# - glances
# - python-pip
# - python3-pip
# - python-passlib
# - zip
# - curl
# - man-db
# - htop
# - openssh-server
# - dirmngr
# - zip
# - apt-transport-https
# - ca-certificates
# - tree
# - ncdu
# - ctop
# - dialog
# - dnsutils
# - mc
# - apache2-utils
# - lsof
# - pwgen
# - gawk
# - python-lxml
# - acl
# - bc

- name: Install Common Packages (Takes Awhile)
apt:
update_cache: yes
name:
- fuse
- nano
- fail2ban
- wget
- lsb-release
- figlet
- software-properties-common
- unrar
- unzip
- glances
- python-pip
- python3-pip
- python-passlib
- zip
- curl
- man-db
- htop
- openssh-server
- dirmngr
- zip
- apt-transport-https
- ca-certificates
- tree
- ncdu
- ctop
- dialog
- dnsutils
- mc
- apache2-utils
- lsof
- pwgen
- gawk
- python-lxml
- acl
- bc
#ignore_errors: yes
- name: Update pip packages for python3
pip:
name:
- pip
- setuptools
- pyOpenSSL
- requests
- netaddr
- lxml
- ansible
state: latest
executable: pip3

- name: Update pip packages for python2
pip:
name:
- pip
- setuptools
- pyOpenSSL
- requests
- netaddr
- lxml
- ansible
state: latest
executable: pip2
3 changes: 2 additions & 1 deletion menu/dlpath/rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ count=$(wc -l < /var/plexguide/container.running)

for ((i=1; i<$count+1; i++)); do
app=$(sed "${i}q;d" /var/plexguide/container.running)
ansible-playbook /opt/coreapps/apps/$app.yml
if [ -e "/opt/coreapps/apps/$app.yml" ]; then ansible-playbook /opt/coreapps/apps/$app.yml; fi
if [ -e "/opt/coreapps/communityapps/$app.yml" ]; then ansible-playbook /opt/communityapps/apps/$app.yml; fi
done

echo ""
Expand Down
13 changes: 6 additions & 7 deletions menu/functions/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,23 @@ updateprime() {

echo "2" > ${abc}/pg.mergerinstall
echo "51" > ${abc}/pg.pythonstart
echo "10" > ${abc}/pg.aptupdate
echo "149" > ${abc}/pg.preinstall
echo "11" > ${abc}/pg.aptupdate
echo "150" > ${abc}/pg.preinstall
echo "22" > ${abc}/pg.folders
echo "11" > ${abc}/pg.dockerinstall
echo "13" > ${abc}/pg.dockerinstall
echo "15" > ${abc}/pg.server
echo "1" > ${abc}/pg.serverid
echo "25" > ${abc}/pg.dependency
echo "29" > ${abc}/pg.dependency
echo "11" > ${abc}/pg.docstart
echo "3" > ${abc}/pg.watchtower
echo "2" > ${abc}/pg.motd
echo "108" > ${abc}/pg.alias
echo "2" > ${abc}/pg.dep
echo "3" > ${abc}/pg.dep
echo "2" > ${abc}/pg.cleaner
echo "3" > ${abc}/pg.gcloud
echo "12" > ${abc}/pg.hetzner
echo "1" > ${abc}/pg.amazonaws
echo "8.4" > ${abc}/pg.verionid
echo "10" > ${abc}/pg.watchtower
echo "11" > ${abc}/pg.watchtower
echo "1" > ${abc}/pg.installer
echo "7" > ${abc}/pg.prune
echo "17" > ${abc}/pg.mountcheck
Expand Down
3 changes: 2 additions & 1 deletion menu/pgshield/rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ tee <<-EOF
EOF
sleep 1.5
ansible-playbook /opt/coreapps/apps/$app.yml
if [ -e "/opt/coreapps/apps/$app.yml" ]; then ansible-playbook /opt/coreapps/apps/$app.yml; fi
if [ -e "/opt/coreapps/communityapps/$app.yml" ]; then ansible-playbook /opt/communityapps/apps/$app.yml; fi
done

echo ""
Expand Down
2 changes: 1 addition & 1 deletion menu/portguard/rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ tee <<-EOF
EOF
sleep 1
if [ -e "/opt/coreapps/apps/$app.yml" ]; then ansible-playbook /opt/coreapps/apps/$app.yml; fi
if [ -e "/opt/coreapps/communityapps/$app.yml" ]; then ansible-playbook /opt/coreapps/apps/$app.yml; fi
if [ -e "/opt/coreapps/communityapps/$app.yml" ]; then ansible-playbook /opt/communityapps/apps/$app.yml; fi
done

echo ""
Expand Down
Loading

0 comments on commit ff2ae87

Please sign in to comment.