debops / debops-playbooks

Ansible playbooks used by DebOps project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove legacy tags.

ypid opened this issue · comments

This command comes in handy. Just tried it and changes:

     - role: ypid.apparmor
-      tags: [ 'role::apparmor', 'apparmor' ]
+      tags: [ 'role::apparmor' ]
git ls-files | xargs sed --in-place --regexp-extended "s/(tags: \[ 'role::[^']+?'), .* ]/\1 ]/"

Thanks, good to know. I'll probably remove legacy tags in the near future when more roles are updated with their dependencies moved to playbooks.

Fixed by #212. Hope the regex magic helped 😉

@ypid It sure did, a bit. Still had to clean up the - hosts: lines by hand though.