All of lore.kernel.org
 help / color / mirror / Atom feed
* aarch64 conditional ansible stanza
@ 2016-04-07  6:46 Loic Dachary
  2016-04-07 13:58 ` Thierry Delamare
  0 siblings, 1 reply; 6+ messages in thread
From: Loic Dachary @ 2016-04-07  6:46 UTC (permalink / raw)
  To: Thierry Delamare; +Cc: Ceph Development

Hi Thierry,

In order to only install a template on architectures that are not aarch64, I changed

- name: Add sources list
  template:
    dest: /etc/apt/sources.list
    src: "../../templates/apt/sources.list.{{ ansible_distribution_release | lower }}"
    owner: root
    group: root
    mode: 0644
  register: sources

into

- name: Add sources list
  template:
    dest: /etc/apt/sources.list
    src: "../../templates/apt/sources.list.{{ ansible_distribution_release | lower }}"
    owner: root
    group: root
    mode: 0644
  register: sources
  when: {{ansible_architecture}} != aarch64

Is there a better way to do that ?

Cheers

-- 
Loïc Dachary, Artisan Logiciel Libre
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-04-07 17:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-07  6:46 aarch64 conditional ansible stanza Loic Dachary
2016-04-07 13:58 ` Thierry Delamare
2016-04-07 14:07   ` Loic Dachary
2016-04-07 15:49     ` Thierry Delamare
2016-04-07 16:09       ` Loic Dachary
2016-04-07 16:35         ` Thierry Delamare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.