Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local install of artifcatory using ansible? #344

Closed
darthVikes opened this issue Nov 7, 2023 · 5 comments
Closed

Local install of artifcatory using ansible? #344

darthVikes opened this issue Nov 7, 2023 · 5 comments

Comments

@darthVikes
Copy link

Can I use this to install artifactory product only locally with ansible? If so, what would need to be changed to only do the install for artifactory and any dependencies needed for artifactory? aka MySQL / nginx?

@chukka
Copy link
Collaborator

chukka commented Nov 8, 2023

@darthVikes can you provide more information on this ? locally means local machine ?

@darthVikes
Copy link
Author

Yes, to a local machine VM running RHEL 8.x or 9.x

Not a cloud ☁️instance.

@chukka
Copy link
Collaborator

chukka commented Nov 8, 2023

You run as shown below example , it requires postgresql as dependency

ansible-playbook -vv examples/playbook-rt.yml -i hosts.ini

@bbaassssiiee
Copy link
Contributor

You would need to pip install ansible-core and ansible-galaxy collection install -r requirements.yml:

collections:
  - name: ansible.posix
  - name: community.postgresql
  - name: community.general
  - name: jfrog.platform

Your hosts file can be a simple as this:

[local:vars]
ansible_connection=local
server_name=artifactory.lan.local

[local:children]
artifactory_servers
postgres_servers

[artifactory_servers]
localhost ansible_host=127.0.0.1

[postgres_servers]
localhost ansible_host=127.0.0.1

@chukka
Copy link
Collaborator

chukka commented Nov 22, 2023

Hope this helps, marking as closed

@chukka chukka closed this as completed Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants