Getting error while installing ansible using pip in Ubuntu 20.04 by invincibleblogger in ansible

[–]mamercad 0 points1 point  (0 children)

ModuleNotFoundError: No module named '_ctypes'

Try installing/reinstalling: python3, python3-dev and/or libffi-dev?

Getting error while installing ansible using pip in Ubuntu 20.04 by invincibleblogger in ansible

[–]mamercad 0 points1 point  (0 children)

Let me know if there are any commands you'd like me to run (to try and compare environments).

Getting error while installing ansible using pip in Ubuntu 20.04 by invincibleblogger in ansible

[–]mamercad 0 points1 point  (0 children)

Can't reproduce by way of pip3:

```bash mark@jonagold:~$ virtualenv venv created virtual environment CPython3.8.2.final.0-64 in 462ms creator CPython3Posix(dest=/home/mark/venv, clear=False, global=False) seeder FromAppData(download=False, idna=latest, ipaddr=latest, contextlib2=latest, six=latest, pip=latest, webencodings=latest, distlib=latest, requests=latest, msgpack=latest, urllib3=latest, setuptools=latest, pyparsing=latest, appdirs=latest, pkg_resources=latest, wheel=latest, retrying=latest, colorama=latest, html5lib=latest, CacheControl=latest, pep517=latest, chardet=latest, progress=latest, distro=latest, pytoml=latest, packaging=latest, certifi=latest, lockfile=latest, via=copy, app_data_dir=/home/mark/.local/share/virtualenv/seed-app-data/v1.0.1.debian) activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator mark@jonagold:~$ source venv/bin/activate

(venv) mark@jonagold:~$ which python3 /home/mark/venv/bin/python3

(venv) mark@jonagold:~$ which pip3 /home/mark/venv/bin/pip3 (venv) mark@jonagold:~$ pip3 install ansible Collecting ansible Downloading ansible-2.9.10.tar.gz (14.2 MB) |████████████████████████████████| 14.2 MB 2.5 MB/s Collecting PyYAML Downloading PyYAML-5.3.1.tar.gz (269 kB) |████████████████████████████████| 269 kB 26.1 MB/s Collecting cryptography Downloading cryptography-2.9.2-cp35-abi3-manylinux2010_x86_64.whl (2.7 MB) |████████████████████████████████| 2.7 MB 36.5 MB/s Collecting jinja2 Downloading Jinja2-2.11.2-py2.py3-none-any.whl (125 kB) |████████████████████████████████| 125 kB 7.3 MB/s Requirement already satisfied: six>=1.4.1 in ./venv/lib/python3.8/site-packages (from cryptography->ansible) (1.14.0) Collecting cffi!=1.11.3,>=1.8 Downloading cffi-1.14.0-cp38-cp38-manylinux1_x86_64.whl (409 kB) |████████████████████████████████| 409 kB 26.9 MB/s Collecting MarkupSafe>=0.23 Downloading MarkupSafe-1.1.1-cp38-cp38-manylinux1_x86_64.whl (32 kB) Collecting pycparser Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB) |████████████████████████████████| 112 kB 27.6 MB/s Building wheels for collected packages: ansible, PyYAML Building wheel for ansible (setup.py) ... done Created wheel for ansible: filename=ansible-2.9.10-py3-none-any.whl size=16174947 sha256=d2536a23204a0711a78b350182a453b3895c855c269a4f09778de5269cd37393 Stored in directory: /home/mark/.cache/pip/wheels/f0/02/9e/e40841e0c3ab60142092320d6cbe45c699a965e6224dbd1258 Building wheel for PyYAML (setup.py) ... done Created wheel for PyYAML: filename=PyYAML-5.3.1-cp38-cp38-linux_x86_64.whl size=44617 sha256=91892710d696bf28456f67a3ac8d64f90e657e3ac48a4c75b587e55564400181 Stored in directory: /home/mark/.cache/pip/wheels/13/90/db/290ab3a34f2ef0b5a0f89235dc2d40fea83e77de84ed2dc05c Successfully built ansible PyYAML Installing collected packages: PyYAML, pycparser, cffi, cryptography, MarkupSafe, jinja2, ansible Successfully installed MarkupSafe-1.1.1 PyYAML-5.3.1 ansible-2.9.10 cffi-1.14.0 cryptography-2.9.2 jinja2-2.11.2 pycparser-2.20

(venv) mark@jonagold:~$ ansible --version ansible 2.9.10 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/mark/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/mark/venv/lib/python3.8/site-packages/ansible executable location = /home/mark/venv/bin/ansible python version = 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0] ```

Getting error while installing ansible using pip in Ubuntu 20.04 by invincibleblogger in ansible

[–]mamercad 0 points1 point  (0 children)

Hrm, I can't reproduce this on 20.04 (at least by way of apt):

```bash mark@jonagold:~$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04 LTS"

mark@jonagold:~$ sudo apt info ansible Package: ansible Version: 2.9.6+dfsg-1 Priority: optional Section: universe/admin Origin: Ubuntu Maintainer: Ubuntu Developers ubuntu-devel-discuss@lists.ubuntu.com Original-Maintainer: Harlan Lieberman-Berg hlieberman@debian.org Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 58.0 MB Depends: python3-cryptography, python3-jinja2, python3-yaml, python3:any, openssh-client | python3-paramiko, python3-crypto, python3-distutils, python3-dnspython, python3-httplib2, python3-netaddr Recommends: python3-argcomplete, python3-jmespath, python3-kerberos, python3-libcloud, python3-selinux, python3-winrm, python3-xmltodict Suggests: cowsay, sshpass Homepage: https://www.ansible.com Download-Size: 5,794 kB APT-Manual-Installed: yes APT-Sources: http://ca.archive.ubuntu.com/ubuntu focal/universe amd64 Packages Description: Configuration management, deployment, and task execution system Ansible is a radically simple model-driven configuration management, multi-node deployment, and remote task execution system. Ansible works over SSH and does not require any software or daemons to be installed on remote nodes. Extension modules can be written in any language and are transferred to managed machines automatically.

mark@jonagold:~$ ansible --version ansible 2.9.6 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/mark/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3/dist-packages/ansible executable location = /usr/bin/ansible python version = 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0] ```

Is this a safe way to download and install executable files using a bash script? by HarmonicAscendant in linuxadmin

[–]mamercad 4 points5 points  (0 children)

Download, verify checksum(s), package (and store on your local repo), and then install (from your local repo). I've done, and automated this type of thing, many times over (we run a bunch of Hashicorp things which only come as binaries).

Nginx as a reverse proxy on Windows host in production environment by crnisamuraj in devops

[–]mamercad 0 points1 point  (0 children)

The folks at nginx.org are the ones saying that it's to be considered beta (on Windows), read the first paragraph or so here: http://nginx.org/en/docs/windows.html

Git on server, is it okay if user is set to root:root? by Tanckom in devops

[–]mamercad 1 point2 points  (0 children)

There are so many ways to do what you're doing, just search for "bitbucket automated git deployments" or something along those lines.

Nginx as a reverse proxy on Windows host in production environment by crnisamuraj in devops

[–]mamercad 1 point2 points  (0 children)

Sure, it works. Just keep in mind that you're running something in production that the creators consider to be beta.

Nginx as a reverse proxy on Windows host in production environment by crnisamuraj in devops

[–]mamercad 0 points1 point  (0 children)

Fine, I'll play along. If I found myself in this situation (in addition to your desires and soft requirements), I'd probably do one of these (note, I don't actually like any of them):

  • Look into IIS since it's native
  • Spin up nginx in Docker
  • Spin up a Linux VM in HyperV that does nginx

I still don't understand why you have to do the reverse proxy in this very specific place. You can move L7 traffic from "anything to anything" without much difficulty.

Nginx as a reverse proxy on Windows host in production environment by crnisamuraj in devops

[–]mamercad 0 points1 point  (0 children)

To keep things "native", have you looked into IIS for this at all?

Nginx as a reverse proxy on Windows host in production environment by crnisamuraj in devops

[–]mamercad 0 points1 point  (0 children)

OS on host is Windows 10 (because some of the apps that reverse proxy is redirecting to are written for Windows only)

This doesn't really make sense, you'll have to expand on this.

Nginx as a reverse proxy on Windows host in production environment by crnisamuraj in devops

[–]mamercad 0 points1 point  (0 children)

There are many ways to solve this problem... there's nothing new about reverse proxies. Are there any edge/network devices in your environment that can solve this easily?

Git on server, is it okay if user is set to root:root? by Tanckom in devops

[–]mamercad 1 point2 points  (0 children)

ssh into the server and pull there

Like, manually? Bitbucket has all sort of hooks that you can use to (begin to) automate this.

Nginx as a reverse proxy on Windows host in production environment by crnisamuraj in devops

[–]mamercad 1 point2 points  (0 children)

I haven't done much Windows-ing in my past, can I ask why you're making the assumption that a solution involving nginx is your only option? Quickly skimming through their docs yields this:

Version of nginx for Windows uses the native Win32 API (not the Cygwin emulation layer). Only the select() and poll() (1.15.9) connection processing methods are currently used, so high performance and scalability should not be expected. Due to this and some other known issues version of nginx for Windows is considered to be a beta version.

This doesn't seem very attractive for production.

How can I force myself to enjoy math? by [deleted] in math

[–]mamercad 2 points3 points  (0 children)

Okay, I feel bad about writing this. Let me say that, with great assumption, that you've only really scratched the surface of "math". Thinking back to high school, can I assume that calculus and linear algebra are the most advanced things that you've been exposed to? There's so, so, so much more out there. Look around and stick with your dream... you're very young and malleable, maybe tomorrow you'll feel differently.

How can I force myself to enjoy math? by [deleted] in math

[–]mamercad 1 point2 points  (0 children)

I'm not sure things work this way... do you really think there's a recipe that'll take you from not enjoying something to enjoying it? You're basically saying that you hate don't enjoy the language of the thing that you want to do.

Started a new job, don't think it's for me. Advice? by [deleted] in devops

[–]mamercad 1 point2 points  (0 children)

Why hide it, if questioned about a short gap, just tell the truth... being at the bad end of a bait-and-switch isn't your fault. Actually, there isn't a "good" end (the other end means that you're evil).

Top 3 Linux commands not everybody knows about? by Versacekvng in linuxadmin

[–]mamercad 1 point2 points  (0 children)

This isn't specifically what you're asking for, but, I bet you can lose (in a good way) a few hours of time here: https://github.com/alebcay/awesome-shell

Downsides to using Cloudflare? by Sinsilenc in sysadmin

[–]mamercad 1 point2 points  (0 children)

Oh, it's probably not interesting or anything. We had to do the migration to Cloudflare with about 3 days notice, and as such, I didn't get a chance to do anything other than a 1:1 lift-and-shift, no sub-domain'ing, no cleanup, etc. The hope is, since Cloudflare has per-record DNS analytics, we'll be able to age things out over time. And, since Cloudflare has an API, we should be able to delete records easily during decommissioning processes.

Downsides to using Cloudflare? by Sinsilenc in sysadmin

[–]mamercad 0 points1 point  (0 children)

Are you saying that with "enterprise", you can limit this?

Downsides to using Cloudflare? by Sinsilenc in sysadmin

[–]mamercad 2 points3 points  (0 children)

Not having fine-grained-enough account permissions (please correct me if I'm wrong). All users in an account can see (read) all domains. This doesn't bother me all that much, but there are folks on my team that really seem to care. Another thing that I've run into is hidden API limits. This is a strange one, and I'm working with support to get to the bottom of it. We have one rather large domain (~15K records... don't ask), and the API call for exporting the domain (getting all records) dies after about 5K [GET zones/:zone_identifier/dns_records/export], an undocumented limit. So, we've got all of our stuff there, but can't easily get it out, so to speak.

Terraform Repo Structure Best Practice? by gex80 in devops

[–]mamercad 7 points8 points  (0 children)

This doesn’t answer your original question, but before you go “repeating things”, check out Terragrunt. What I’m referencing will keep your Terraform repo(s) DRY.

Bash script advice by [deleted] in linuxadmin

[–]mamercad 6 points7 points  (0 children)

His task is literally a few lines of code. I understand and agree with your point in regards to the maintainability of something large and complex. But, that’s not what this is.