News for hackers. Stuff that matters.
Re:Ansible 2.10 by tbran on Friday August 14, 2020 @08:50AM (#24157195)
Love using Ansible (though I don't always love writing YAML).

PROTIP: I use it to manage my laptops/workstations with a hosts entry like:

  [laptop-thinkpad]
  localhost ansible_connection=local
Sometimes I think it's overkill, but the config files are a little easier to visually parse.
Re:Ansible 2.10 by Spivak on Friday August 14, 2020 @12:22PM (#24159875)
Another nice trick is to use your shebang line.

    #!/usr/bin/env ansible-playbook
    ---
    - hosts: localhost
      connection: local
      vars:
        home: "{{ lookup('env', 'HOME') }}"
      tasks:
        # ...
So then it just becomes.

    pip install -r requirements.txt
    ./install --tags=bash
Re:Ansible 2.10 by INTPenis on Friday August 14, 2020 @08:55AM (#24157240)
Deprecated group name format. ;)

I started using Ansible when it was brand new, like 0.2 I believe. It changes so fast that I've had junior co-workers come in and teach me new best practices in Ansible.

Re:Ansible 2.10 by apple4ever on Friday August 14, 2020 @05:26PM (#24163484)
That deprecation was deprecated :)
Re:Ansible 2.10 by INTPenis on Monday August 17, 2020 @02:48PM (#24190445)
No way, you're kidding!
Re:Ansible 2.10 by l-p on Friday August 14, 2020 @10:35AM (#24158452)
First I used debian packages and maintained a (multiarch!) repository to setup my computers, then I used Ansible and had to first install Python and SSH on every machine, now I just run a script and I'm done in a few minutes and very few manual steps.

I found Ansible for personal computers to be brittle and cumbersome as reinstalls are usually for OS upgrades and those tend to have breaking changes.