wide-midnight-78598
02/11/2022, 9:00 PM./pants deploy {target}
somewhere? I could swear I saw that at some point in the past - but now I feel like I'm making it uphundreds-father-404
02/11/2022, 9:01 PMdocker_image
and experimental support for PYthon via Twine https://www.pantsbuild.org/v2.10/docs/python-publish-goalwide-midnight-78598
02/11/2022, 9:04 PMcurved-television-6568
02/11/2022, 9:05 PMdeploy
goal, I think.wide-midnight-78598
02/11/2022, 9:59 PMhundreds-father-404
02/11/2022, 10:15 PMdeploy
, but we'd be willing to consider itwide-midnight-78598
02/11/2022, 10:45 PM./pants deploy :project
would be dopecareful-address-89803
02/12/2022, 6:15 AMpublish
makes more sense for Collections, which are the package format for Ansible roles and plugins.
I agree that having a tool to serve as a convenient entrypoint for Ansible playbooks would be great. It doesn't take a lot of infrastructure before there's a huge readme with the commands you need to copy-paste.curved-television-6568
02/12/2022, 7:32 PMpublish
makes sense to integrate with Ansible Galaxy, while deploy
would make sense in order to execute a playbook.wide-midnight-78598
02/13/2022, 12:53 AMcareful-address-89803
02/13/2022, 1:43 AMwide-midnight-78598
02/13/2022, 2:18 AMcheck
command for the ansible_deployment
target. It just runs ansible's syntax-check on the playbook (though, now that I'm thinking about it, perhaps that should be a lint command). Whatever.
I kinda read through the Docker, Terraform, and Shell stuff to get some ideas on how Ansible should look eventually. As you mentioned earlier, publish
would be good for getting roles up to the galaxy.
Open to any/all API ideas, as right now, I'm only thinking in the workflows I use day-to-day, which are pretty narrow.
ansible_deployment(
name="helloansible",
dependencies=[""],
playbook="playbook.yml",
#inventory="", # TODO: Could this be setup like the Docker registries? in pants.toml
#tags="", # TODO: Might need a different name to not overlap
#timeout="",
)
curved-television-6568
02/13/2022, 7:48 AMcareful-address-89803
02/14/2022, 3:20 AMextra_args
field. Collections support has a few tasks. There are also ansible-test and ansible-lint for checking.
There's also a lot of work to do for finding files to include. Ansible is very helpful in finding these, checking in many places, so what's a valid/reachable file to include as a source is either a lot of work or an opinionated subset haha