# ansiible: skip when not type function

**URL:** <https://forum.ansible.com/t/ansiible-skip-when-not-type-function/27129>\
**Category:** Ansible Project\
**Created:** [March 27, 2018, 2:43pm UTC](https://forum.ansible.com/t/ansiible-skip-when-not-type-function/27129 "2018-03-27T14:43:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![z\_z](https://avatars.discourse-cdn.com/v4/letter/z/7ba0ec/32.png) [@z\_z](https://forum.ansible.com/u/z_z)\
**Post date:** [March 27, 2018, 2:43pm UTC](https://forum.ansible.com/t/ansiible-skip-when-not-type-function/27129/1 "2018-03-27T14:43:50Z")

</div>

```auto
- name: Httpd running ?
  shell: ps axo args | grep httpd | grep -v grep 
  register: apache
  failed_when: false
  ignore_errors: yes < **---- if this removed I get red error on non httpd servers**

- name: Copy script
  get_url:
    url: "http://anotherscript.sh
    dest: /tmp/anotherscript.sh
    mode: 0755
    owner: root
    group: root
    force: yes
  when: apache.rc == 0

```

```auto
What I want is some thing along those lines

```

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [March 27, 2018, 3:06pm UTC](https://forum.ansible.com/t/ansiible-skip-when-not-type-function/27129/2 "2018-03-27T15:06:26Z")

</div>

I can't confirm that with 2.4 or 2.5
