ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. Tags
    3. ansible
    Log in to post
    • All categories
    • EddieJenningsE

      YouTube Months in Review: July - October 2021

      Watching Ignoring Scheduled Pinned Locked Moved Self Promotion rhce blog youtube home lab yak shaving ansible
      1
      1 Votes
      1 Posts
      510 Views
      No one has replied
    • EddieJenningsE

      Ansible facts nested variable syntax preference

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion ansible yaml ansible facts
      3
      1 Votes
      3 Posts
      1k Views
      EddieJenningsE

      @black3dynamite said in Ansible facts nested variable syntax preference:

      Looks like Bracket notation is best choice instead of dot.

      Bracket notation always works. Dot notation can cause problems because some keys collide with attributes and methods of python dictionaries. Use bracket notation if you use keys which start and end with two underscores (which are reserved for special meanings in python) or are any of the known public attributes:

      Overlooked that in the documentation. While it's less efficient to type [' and '] rather than ., I'll live with it. ๐Ÿ™‚

    • EddieJenningsE

      YAML terminology and Ansible

      Watching Ignoring Scheduled Pinned Locked Moved Training yaml ansible
      20
      1 Votes
      20 Posts
      2k Views
      1

      @Obsolesce said in YAML terminology and Ansible:

      @Pete-S said in YAML terminology and Ansible:

      @Obsolesce said in YAML terminology and Ansible:

      @Pete-S said in YAML terminology and Ansible:

      Other than that it doesn't matter to me what anyone calls it.

      You are 100% to call it whatever you want. But a key/value pair is commonly referred to as a dictionary... or a hash table which is a dictionary data type. This isn't exclusive to Python in the least.

      "Commonly referred" depends on the programming language in question. For example in many other languages it's commonly called an array or collection and never a dictionary.

      If you look at the part you quoted, YAML calls it mappings.

      The proper computer science terminology would be associative array.
      https://en.wikipedia.org/wiki/Associative_array

      The best thing to do is to call it exactly what the language or software you are referring to calls it. If Ansible wants you to create what it has named in their documentation as a dictionary in YAML, that's what you refer to it as. Otherwise, someone who is familiar with Ansible and it's documentation won't know what the hell you are talking about if you call it your own thing.

      I can agree with that point of view - YAML in the context of Ansible.
      https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html

      So you'd call it dictionaries then. And lists.

    • Emad RE

      Are you using AWX ?

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion awx ansible
      5
      1 Votes
      5 Posts
      795 Views
      Emad RE

      @travisdh1

      yh all works just the import/export thing is not 100% if you have 2 awx instances

    • AdamFA

      Automated Provisioning - KVM & CM tools

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion kvm ansible saltstack automation libvirt
      11
      1 Votes
      11 Posts
      1k Views
      AdamFA

      @stacksofplates said in Automated Provisioning - KVM & CM tools:

      @fuznutz04 said in Automated Provisioning - KVM & CM tools:

      @stacksofplates said in Automated Provisioning - KVM & CM tools:

      Terraform will do this and I have an Ansible role to do it also.
      As @IRJ mentioned Vagrant will work also. However I feel Terraform is a better fit as you have more control over the specific pieces of your infrastructure.

      You would still prefer Terraform over Ansible for this as well?

      Yeah. My role can create the VMs, but Terraform had more functionality for that. Ansible overlaps in the infrastructure provisioning space a lot, but it lacks keeping states like Terraform does.

      I'd like to learn both. I just started with Ansible a day or two ago. I have been (and still am) using SaltStack.

    • stacksofplatesS

      Using Make for SysAdmin Work

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion make terraform ansible devops idempotent
      1
      5 Votes
      1 Posts
      445 Views
      No one has replied
    • DustinB3403D

      Can someone explain yaml spacing to me because Im going insane

      Watching Ignoring Scheduled Pinned Locked Moved Solved IT Discussion yaml formatting ansible
      4
      0 Votes
      4 Posts
      594 Views
      DustinB3403D

      @JaredBusch said in Can someone explain yaml spacing to me because Im going insane:

      @DustinB3403 said in Can someone explain yaml spacing to me because Im going insane:

      I'm aware there are tabs, this is due to Notepad++

      There is a setting for that in Notepad++

      I'll be searching for that tomorrow.

    • scottalanmillerS

      Ansible Agent Option?

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion ansible
      163
      0 Votes
      163 Posts
      22k Views
      scottalanmillerS

      @stacksofplates said in Ansible Agent Option?:

      Yeah it's obviously bad to treat it like a LAN but if you stop using tools just because it can be treated that way you are sometimes stopping yourself from doing some really interesting and helpful things.

      Yes, LAN-like tools are only LAN-like if you treat them in that fashion. The behaviour is rarely intrinsic.

    • DustinB3403D

      Using Ansible to Manage install and update Apple OSX DHCP clients

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion osx ansible homebrew apple automation
      100
      0 Votes
      100 Posts
      9k Views
      stacksofplatesS

      This is a good starter video:

      Youtube Video

    • travisdh1T

      Install AWX on CentOS 7 with Docker

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion awx ansible docker centos7
      25
      2 Votes
      25 Posts
      9k Views
      stacksofplatesS

      Another thing to note. I believe it's the rabbitmq password that can't accept an @ in the password.

    • F

      The differences between how Salt and Ansible manage Windows

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion salt ansible
      6
      3 Votes
      6 Posts
      652 Views
      F

      I should give Ansible a go one of these days, because whenever I research it, it seems to fall short of Salt, but it would be nice to really have concrete experience of how it falls short.

      My current thinking is that if there's a windows feature that Ansible that Salt doesn't, I could probably just grab the powershell script + any dependent scripts and create Salt state/module wrappers around it.

      Alternatively, Salt can run Ansible playbooks on minions, but the wrapper approach is more minimalist (don't have to install Ansible on each minion) and keeps secret security simpler.

    • DustinB3403D

      Which is easier to learn Ansible or Chef or Puppet

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion ansible chef automation puppet
      23
      1 Votes
      23 Posts
      2k Views
      scottalanmillerS

      @flaxking said in Which is easier to learn Ansible or Chef or Puppet:

      The whole container/CM thing is kind of at a weird place right now. With containers, we've sort of migrated back to the golden image thing, just with the pressure to create an image using a config file. I don't really like images on docker hub that don't have links to the dockerfile.

      Yes, images that can't be tweaked without rebuilding. It's has benefits, and a lot of caveats. Having to deploy new containers for every patch is pretty silly. And so many things can't be immutable, including the platform on which the containers run.

      At the end of the day, containers are either mutable, or immutable. The former need CM inside the container, the later need it outside the container.

    • wirestyle22W

      Ansible 2.4.2.0 on CentOS 7--ping module isn't working

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion ansible
      33
      0 Votes
      33 Posts
      3k Views
      stacksofplatesS

      @wirestyle22 said in Ansible 2.4.2.0 on CentOS 7--ping module isn't working:

      @stacksofplates That's pretty incredible. Any advice on things I should attempt to set up right now for learning purposes?

      A big benefit is Ansible Galaxy. Look over how everyone sets up their stuff. That will give you good ideas on what to try and how to start writing stuff.

    • wirestyle22W

      Setting up an Ansible Test Environment in Ubuntu 16.04.4

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion ansible ubuntu 16.04 how to
      8
      0 Votes
      8 Posts
      1k Views
      DanpD

      For anyone interested, I recently setup Ansible AWX on Fedora 27 using this guide. Running as a local VM so didn't do anything with Nginx / reverse proxy.

    • stacksofplatesS

      Ansible role for GRAV

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion ansible grav
      10
      3 Votes
      10 Posts
      1k Views
      stacksofplatesS

      @black3dynamite said in Ansible role for GRAV:

      @stacksofplates said in Ansible role for GRAV:

      I think the coolest thing about it is being a flat file setup, you can check the whole CMS into Git and do all of your edits and updates through configuration management.

      So I would just have create a new repo from within the root directory?

      Well I was thinking more update the site, make page changes, etc on my local repo. Push changes up to my repo in Gitlab/Github whatever and then have a post-receive hook that pushes changes to the web server.

    • A

      Securing Linux with Ansible

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion ansible linux security
      13
      1 Votes
      13 Posts
      1k Views
      stacksofplatesS

      Hereโ€™s mine based off of the DISA STIGS.

      https://mangolassi.it/topic/15041/ansible-hardening-role

    • mlnewsM

      Ansible for MS SQL Server on Windows

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion ansible devops windows server ms sql server xp
      9
      3 Votes
      9 Posts
      11k Views
      stacksofplatesS

      It's kind of hard to help without seeing the playbook/role you created.

    • stacksofplatesS

      Ansible Wordpress Install

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion ansible wordpress automation
      2
      2 Votes
      2 Posts
      2k Views
      masterartsM

      Great

    • stacksofplatesS

      Ansible Create KVM Guests

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion kvm ansible automation
      9
      2 Votes
      9 Posts
      14k Views
      stacksofplatesS

      @fabionoth said in Ansible Create KVM Guests:

      Hi @stacksofplates. Did you find something about virt module.
      Here's https://docs.ansible.com/ansible/latest/modules/virt_module.html#virt-module link.

      But, I cannot build a machine? with creating command.
      by the way: your article is awesome.

      Yeah that's why I wrote this. That virt module doesn't support cloning systems. I never got around to linking that module. I'll see if I can find it again. You just need to put it in your local module library and then you can call it like any other module.

    • stacksofplatesS

      Ansible Testing with Molecule

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion ansible vagrant molecule cicd automation
      10
      3 Votes
      10 Posts
      2k Views
      jmooreJ

      Ok added your site. Scott's is on there too.

      http://aindien.com/my-favorite-blogs/

    • 1
    • 2
    • 3
    • 1 / 3