You specify the what. You don't specify the action. You need a state (ie
present, absent, etc).
- name install standard stuff
apt:
name: {{ applications }}
state: present
Walter
--
Walter Rowe, Division Chief
Infrastructure Services, OISM
Mobile: 202.355.4123
On Aug 19, 2022, at 10:16 AM, Kevin Shumaker
<[email protected]<mailto:[email protected]>> wrote:
Wow, thanks for the speedy reply!
Unfortunately for me, that didn't work (adding 2 spaces further indent on the
line " name: {{ applications }} " although it does make sense.
I still get the same error, at the same point. Kinda frustrating when the
keyword "name:" can be used for several different functions.
as an aside, and in a different, non-clean, non-easy to maintain, but to prove
to me that ansible can work, sorta, I created the playbook with separate
install lines for each app in the playbook:
tasks:
- name: install app1
apt: name=app1 state=present
- name: install app2
apt: name=app2 state=present
but I'm at 20 apps, and haven't even begun the setup commands, and copy files,
yet, and the playbook is becoming unwieldy, so the vars list setup would be of
great assistance...
Thanks again for the speedy reply, though.
On Friday, August 19, 2022 at 9:50:11 AM UTC-4
[email protected]<http://nist.gov> wrote:
Does your 'name' line in your apt task needs to be indented?
- name install standard stuff
apt:
name: {{ applications }}
... should be ...
- name install standard stuff
apt:
name: {{ applications }}
Walter
--
Walter Rowe, Division Chief
Infrastructure Services, OISM
Mobile: 202.355.4123<tel:(202)%20355-4123>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/bbaf5085-c974-40a7-89eb-9864510c392cn%40googlegroups.com<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fansible-project%2Fbbaf5085-c974-40a7-89eb-9864510c392cn%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=05%7C01%7Cwalter.rowe%40nist.gov%7Cfa3ccbde153a4c804d7908da81ed6801%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C637965153919395651%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=2AIEXRSTSxjzODed%2BSGgBH6MV4pEpg912obvuU5aNK0%3D&reserved=0>.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/2986E4F3-FC6D-4E8A-83CE-9F0C93C3DC07%40nist.gov.