Welcome all – Tips and tricks for python, ansible, bash, etc

  • Base dockerized squid proxy

    June 11, 2020 by

    Here the dockerfile for an alpine based squid proxy working with default installation FROM alpineRUN apk update && \apk add squidCMD [“/usr/sbin/squid”, “-NCd1”] Build the image: docker build -t basic_squid . and create the container by running: docker run -d –rm –name squid-test -p 3128:3128 basic_squid test it by running curl: curl -x http://localhost:3128 -L… Read more

  • Jenkins: variables in freestyle projects

    May 2, 2020 by

    Let’s say you are running a freestyle project in jenkins and you need a variable to use between building steps. One way is to install and use different plugins to give you the option to add custom global variables. However, there is an alternative by using linux bash commands without any further installations. (this assumes… Read more

  • Ansible Module Parameters

    July 7, 2019 by

    When writing new modules, the ansible documentation is quite vague. Here more information about it. The official documentation link, https://docs.ansible.com/ansible/latest/reference_appendices/module_utils.html Give you only the definition of the module class: class ansible.module_utils.basic.AnsibleModule(argument_spec, bypass_checks=False, no_log=False, check_invalid_arguments=None, mutually_exclusive=None, required_together=None, required_one_of=None, add_file_common_args=False, supports_check_mode=False, required_if=None, required_by=None) Here a useful blog that explains some of the options: https://mobygeek.net/blog/2016/02/16/ansible-module-development-parameters/ And some extra… Read more

View all posts

Follow My Blog

Get new content delivered directly to your inbox.