Re:Show HN: Bash Script to Install a Webserver and PHP on a ...
by mister_hn on Tuesday January 21, 2020 @01:52AM
(#22104816)
Sure, but then you need to install also python environment for Ansible,on a machine where only Apache or nginx are needed
[ Parent
| on HN ]
Re:Show HN: Bash Script to Install a Webserver and PHP on a ...
by seedie on Tuesday January 21, 2020 @04:14AM
(#22105401)
The only supported OS is Ubuntu 18.04 LTS, which comes preinstalled with python 2.7 and 3.6. Not arguing that there are situations where a simple bash script is way better than an additional tool with dependencies
Re:Show HN: Bash Script to Install a Webserver and PHP on a ...
by rooam-dev on Tuesday January 21, 2020 @03:38AM
(#22105259)
Which OS comes without Python pre-installed? But I agree, the less is installed the better.
Re:Show HN: Bash Script to Install a Webserver and PHP on a ...
by mister_hn on Tuesday January 21, 2020 @03:40AM
(#22105263)
Alpine Linux, Busybox, ArchLinux are examples.
Re:Show HN: Bash Script to Install a Webserver and PHP on a ...
by seedie on Tuesday January 21, 2020 @04:08AM
(#22105375)
Alpine Linux doesn't have bash installed by Default either. Don't know about the others
Re:Show HN: Bash Script to Install a Webserver and PHP on a ...
by killerjoe on Tuesday January 21, 2020 @08:53AM
(#22106850)
ArchLinux - wrong, has python preinstalled even if you go with the base image.
Alpine - doesn't even contain bash in the miniroot edition
Busybox - similar to Alpine
If python happens to disappear from all linux distros ansible can still work with the raw module.
In any case, the bash script posted is based on apt install so it's not going to work on much less amount of distros rather than if it was just an ansible role.
Re:Show HN: Bash Script to Install a Webserver and PHP on a ...
by benbristow on Tuesday January 21, 2020 @03:39AM
(#22105261)
Windows?
Re:Show HN: Bash Script to Install a Webserver and PHP on a ...
by __app_dev__ on Tuesday January 21, 2020 @01:35PM
(#22109908)
Windows doesn't come with bash by default either ;)
Python is extremely easy to setup on Windows though.
Time have changed a lot though as you can now run complex bash scripts on the Windows Subsystem for Linux (published by Microsoft).
Windows Subsystem for Linux https://docs.microsoft.com/en-us/windows/wsl/about
Print Screens and Doc of running as Bash Script on Windows: https://fastsitephp.com/en/documents/file-encryption-windows
Re:Show HN: Bash Script to Install a Webserver and PHP on a ...
by Shalle135 on Tuesday January 21, 2020 @08:23AM
(#22106633)
Which can be resolved by running SCCM
Re:Show HN: Bash Script to Install a Webserver and PHP on a ...
by killerjoe on Tuesday January 21, 2020 @09:03AM
(#22106929)
In a history of running ansible for ages against 5k-25k machines regularly in not a single case I had to install python on any one of those before running a playbook. There's a reason why it's described as agentless.
Re:Show HN: Bash Script to Install a Webserver and PHP on a ...
by yjftsjthsd-h on Tuesday January 21, 2020 @09:19AM
(#22107043)
In fairness, there are some dependencies depending on what you're doing; ansible's use of apt needs python-apt (or maybe aptitude?), and I have hit that one hard (granted, on termux, which is a weird target). Oh, and I had to do the equivalent on Fedora. Which is fine, mind, just pointing out that dependencies do still happen in ansible.